给这个表加个时间的字段,insertdate,datetime类型sql这样写:select * from t where insertdate > 今天0时 and insertdate < 明天0时 order by insertdate
给数据库里加字段,一般是操作日期,默认取当前日期,标识你所谓的远近,然后order by这个字段就可以啦。