首页 > 其他 > 详细

获取给定月中哪些天有聊天记录

时间:2017-03-05 15:58:39      阅读:188      评论:0      收藏:0      [点我收藏+]
select distinct( DATE_FORMAT(send_time,%Y-%m-%d) ) as consultation_date from text_message a
where a.type=1 and a.category=1 
and 
  ((a.sender_id=6228841891912220677 and a.receiver_id=6227763200226492443) 
  or a.sender_id=6227763200226492443 and a.receiver_id=6228841891912220677)
and a.send_time between 2017-03-01 00:00:00 and 2017-04-01 00:00:00

order by consultation_date asc;

 

获取给定月中哪些天有聊天记录

原文:http://www.cnblogs.com/quietwalk/p/6505622.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!