
查询指定日期范围
根据 create_time 时间戳查询 comment 表中今日指定 id 的数据。
查询语句:
select * from comment where to_days(create_time) = to_days(now()) and id = 21;

查询指定日期范围
根据 create_time 时间戳查询 comment 表中今日指定 id 的数据。
查询语句:
select * from comment where to_days(create_time) = to_days(now()) and id = 21;
相关标签:
本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134.1万人学习
共49课时 | 82.6万人学习
最新文章