当前位置:Gxlcms > 数据库问题 > mysql过滤时间段表单

mysql过滤时间段表单

时间:2021-07-01 10:21:17 帮助过:3人阅读

Sql:

SELECT * FROM tb_test
where date >= date_format(:bdate,‘%Y%m%d‘) and date <= date_format(:edate,‘%Y%m%d‘)
ORDER BY b.date ASC;

 其中

:bdate为开始日期;

:edate为结束日期。

mysql过滤时间段表单

标签:

人气教程排行