开发者

MYSQL Query Date Between

开发者 https://www.devze.com 2023-03-10 02:15 出处:网络
What is wrong with this query selecta.TEST开发者_如何学PythonDATEfrom testr a,XREFRTGTE b where a.id = b.id and a.TESTDATE between BETWEEN STR_TO_DATE(\'2011-05-26 12:22:33\',\'YYYY-MM-DD HH:MM:SS\'

What is wrong with this query

select  a.TEST开发者_如何学PythonDATE  from testr a,XREFRTGTE b where a.id = b.id and a.TESTDATE between BETWEEN STR_TO_DATE('2011-05-26 12:22:33','YYYY-MM-DD HH:MM:SS') AND STR_TO_DATE('2011-06-02 12:22:33','YYYY-MM-DD HH:MM:SS') limit 200

Please help


I can see two between used in the query:

... between BETWEEN ...

Try dropping one.

0

精彩评论

暂无评论...
验证码 换一张
取 消