我是PHP新手,想知道thinkPHP中,怎么通过时间段查询数据

2025-06-25 08:09:09
推荐回答(1个)
回答1:

数据表中需要有保存时间的字段,比如time字段,最好用int来保存时间戳。
查询的时候:
where time>min and time就OK了