欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql 俩周以内时间端查询

程序员文章站 2024-04-03 00:01:34
...

mysql 俩周之内时间端查询 select title,like_count,create_time from housing_guide where status = 2 and create_time between date_add(now(), interval -15 day) and date_add(now(), interval -1 day) order by create_time desc;

mysql 俩周之内时间端查询
select title,like_count,create_time from housing_guide where status = 2 and create_time between date_add(now(), interval -15 day) and date_add(now(), interval -1 day) order by create_time desc;