mysql group by 取第一条时间:2021-05-04 00:26:20select * from table where id in (select max(id) from table group by sku) 说明:id是自增序列,sku是表中的一个字段