mysql between and 日期比较笔记

比如
select t.card_Status,count(1) from uk_tibet_cardstatusinfo t where  t.aaz502 !='09' and createtime between '2019-12-11' and '2019-12-19' group by card_Status 

这样表示查询出来2019-12-11 零点开始到  2019-12-18 日23:59分,也就是最19日前的一段时间

发布了17 篇原创文章 · 获赞 0 · 访问量 222

猜你喜欢

转载自blog.csdn.net/lihailin8/article/details/103637651
今日推荐