SQL查询当日的记录

在医疗中查询当日的数据是常见的数据操作,大多数的服务系统在做一天的数据统计是,经常会用到统计一天的记录数,下面是统计当天的记录数据查询方式:

select * from his_doctors_advice where doctors_advice_time between current_date() and date_format(current_date,'%Y-%m-%d 23:59:59');
发布了327 篇原创文章 · 获赞 133 · 访问量 63万+

猜你喜欢

转载自blog.csdn.net/qq_30507287/article/details/102605439