1.数据库字段设置成varchar 查询的时候会有时差
解决办法:
and CAST(ts_message.utime as DATE) between CAST('$times1' as DATE) and cast('$times2' as date)
本文共 176 字,大约阅读时间需要 1 分钟。
1.数据库字段设置成varchar 查询的时候会有时差
解决办法:
and CAST(ts_message.utime as DATE) between CAST('$times1' as DATE) and cast('$times2' as date)
转载于:https://www.cnblogs.com/tine/p/7093759.html