输入banner图图片脚本导航/分类

mysql过滤时间段表单

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过滤时间段表单

标签: