我正在尝试处理连接、mysql 和coldfusion。以下查询在没有最后一个条件的情况下有效。
<cfquery name="GetWeekends">
SELECT w.id, w.weekend_type, w.community_id, w.start_date, w.end_date,
w.language,
c.community_id, c.location, c.language, c.state, c.country
FROM _weekends w
INNER JOIN _communities c
ON w.community_id=c.community_id
WHERE w.weekend_type = 1 AND w.start_date > Now() AND
#DateFormat(w.start_date, "m")# = '#form.home_by_month#'
ORDER BY w.start_date ASC
</cfquery>
它正在消亡
#DateFormat(w.start_date, "m")#
告诉我变量 [W] 不存在。对不起,我边走边学……