我试图在两个日期范围之间进行选择,但我的查询似乎无法正常工作。
这是我的疑问......我做错了什么?
SELECT * FROM `sales_flat_order` WHERE created_at Between '2015-03-17 18:33:45' AND '2015-02-12 22:18:41'
答案 0 :(得分:4)
从低到高之间你有更高到更低的
Between '2015-03-17 18:33:45' AND '2015-02-12 22:18:41'
应该是
Between '2015-02-12 22:18:41' AND '2015-03-17 18:33:45'