sql:查询前一天数据

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_38750084/article/details/86097643

查询昨天0点到23点59分50秒的数据:

select * from t_contact where date(create_time) =date_sub(curdate(),interval 1 day);

猜你喜欢

转载自blog.csdn.net/weixin_38750084/article/details/86097643