mysql group by 取第一条时间:2023-03-10 01:03:03 select * from table where id in (select max(id) from table group by sku) 说明:id是自增序列,sku是表中的一个字段