1. 程式人生 > >mysql 時間型別精確到毫秒、微秒及其處理

mysql 時間型別精確到毫秒、微秒及其處理

select * from test where DATE_FORMAT(timess,'%Y-%m-%d %T:%f') between DATE_FORMAT('2010-12-01 06:03:16.233','%Y-%m-%d %T:%f') and DATE_FORMAT('2010-12-01 08:03:16.733','%Y-%m-%d %T:%f')