时间:2021-07-01 10:21:17 帮助过:2人阅读
如果要查询当天的订单的记录: [plain] select count(*) from b_order Where date_format(from_unixtime(create_time),‘%Y-%m-%d‘) = date_format(now(),‘%Y-%m-%d‘) 也可以这样: [plain] select count(*) from b_order Where create_time >= unix_timestamp(‘2013-10-24 00:00:00‘) and create_time <= unix_timestamp(‘2013-10-24 23:59:59‘) ;
mysql查询时间戳和日期的转换
标签: