You have an error in your SQL syntax

来源:百度知道 编辑:UC知道 时间:2024/06/04 08:51:40
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 'call from hm2_history where '2007-9-1' + interval 0 day < date + interval 0 hour' at line 1

顶部出现这提示,望高手帮俺。。

你的完整SQL语句是什么样子?
根据上面的来看,
'2007-9-1' + interval 0 day < date + interval 0 hour'
在SQL里是无法执行的,你这里面的interval,day,date,hour都不为SQL系统接受.