這是我數(shù)據(jù)庫中的時間, 是時間戳,我想通過 搜索 或者 SQL 語句搜索出當月 或 某月 1-31 號 update_time 字段
2 回答

翻翻過去那場雪
TA貢獻2065條經(jīng)驗 獲得超14個贊
select * from tbl where update_time between unix_timestamp('2019-01-31 00:00:00') andunix_timestamp('2019-01-31 23:59:59')
時間范圍也可以計算好傳給sql

慕婉清6462132
TA貢獻1804條經(jīng)驗 獲得超2個贊
select * from tbl where update_time between a時間戳 and b時間戳 盡量不要在條件中做運算
添加回答
舉報
0/150
提交
取消