查询时间差<10秒的记录: select * from myTable where (t2- t1)*24*60*60<10 t1,t2只能是date类型。 如果是 http://www.linuxidc.com/Linux/2011-10/45480.htm