使用unix_timestamp方法進行比較,將字符型的時間,轉成unix時間戳
select * from t1 where unix_timestamp(time1) > unix_timestamp('2011-03-03 17:39:05') and unix_timestamp(含有時間的字段) < unix_timestamp('2016-12-06');
使用unix_timestamp方法進行比較,將字符型的時間,轉成unix時間戳
select * from t1 where unix_timestamp(time1) > unix_timestamp('2011-03-03 17:39:05') and unix_timestamp(含有時間的字段) < unix_timestamp('2016-12-06');
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。