我正在尝试从2013-12-13这个日期中选择所有订单。信息是整数值。查询将运行,但没有给我任何信息。
SELECT FROM_UNIXTIME(modified)
FROM orders
WHERE (modified BETWEEN '2013-12-13 00:00:00' AND '2013-12-14 00:00:00')
答案 0 :(得分:1)
SELECT FROM_UNIXTIME(modified)
FROM orders
WHERE modified BETWEEN UNIX_TIMESTAMP('2013-12-13 00:00:00') AND UNIX_TIMESTAMP('2013-12-14 00:00:00')