Mysql语句出错了,求大神帮我看看!!!

u011099967 2016-01-31 12:16:36
原句: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
...全文
252 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
---涛声依旧--- 2016-02-15
  • 打赏
  • 举报
回复
错误提示很明确了,错在这里:securityCode=? --?要用具体的值表示
Ginnnnnnnn 2016-02-01
  • 打赏
  • 举报
回复
securityCode=? 这个是什么鬼? 把这个条件去掉就应该没问题,这个是不是你的参数?
0808xyj 2016-01-31
  • 打赏
  • 举报
回复
securityCode = ? 报的错误 占位符 没有 传过来参数啊

590

社区成员

发帖
与我相关
我的任务
社区描述
提出问题
其他 技术论坛(原bbs)
社区管理员
  • community_281
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧