保留相同A值的最小id行 select *from table_a awhere not exists ( select 1 from table_a b where b.A = a.A and b.id < a.id ) 相关文章: