时间:2021-07-01 10:21:17 帮助过:4人阅读
SELECT * FROM tbl_name WHERE FROM_UNIXTIME(Reg_addtime, '%Y-%m-%d') BETWEEN '2013-05-01' AND '2013-05-10'
也可以这样:
select * from order where timestamp between UNIX_TIMESTAMP('2013-05-01 00:00:00') and UNIX_TIMESTAMP('2013-05-10 00:00:00');