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
)

分类:

技术点:

相关文章:

  • 2021-12-11
  • 2021-06-14
  • 2022-01-23
  • 2021-06-19
  • 2021-11-18
  • 2021-12-09
  • 2021-11-18
  • 2021-11-18
猜你喜欢
  • 2021-09-25
  • 2021-07-08
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
相关资源
相似解决方案