关于MySQL中时间格式和取零点的问题

时间:2023-03-09 03:13:09
关于MySQL中时间格式和取零点的问题

select * from order where create_time>'2016-05-21 00:00:00'; 不包含2016-05-21 00:00:00时的订单

select * from order where create_time>'2016-05-21'; 包含2016-05-21 00:00:00时的订单

等价于

select * from order where create_time>='2016-05-21 00:00:00';

相关文章