Mysql语句出错了,求大神帮我看看!!!
原句:select * from s_picture_details_all where securityCode=? and billNo is null and TO_DAYS(buildTime)=TO_DAYS(NOW());
报错:[SQL]select * from s_picture_details_all where securityCode=? and billNo is null and TO_DAYS(buildTime)=TO_DAYS(NOW());
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? and billNo is null and TO_DAYS(buildTime)=TO_DAYS(NOW())' at line 1