sql查询表中日期最新记录 select a.xx from xx a where not exists (select 1 from xx b where b.xx_time > a.xx_time)