select * from message where time like '2017-11-07%';
注意:like 2017-11-07 而不是 like 2017-11-7,因为从前台传过来的数据是2017-11-7,我在这个地方浪费了一晚上。。。真是醉了
mysql> select * from message where time > '2017-11-06' and time < '2017-11-08';
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!