shawn-sun
保留相同A值的最小id行
select *
from table_a a
where not exists (
select 1 from table_a b
where b.A = a.A
and b.id < a.id
)

分类:

技术点:

相关文章: