sql查询某个时间内的数据

select * from sys_member where create_time >=(NOW() - interval 24 hour)

 

七天之前的数据
SELECT * FROM commodity_order where create_time <= (now()-INTERVAL 7 DAY) order by create_time desc

 

posted @ 2019-10-24 11:55  suruozhong  阅读(2513)  评论(0编辑  收藏  举报