With temp As
(
    Select ROW_NUMBER() over(partition by LogisticsPlan order by createon) rowID,ID from LogisticsPlan
    Where LogisticsPlan IN(
    'AGDPM15071704',
    'AGDDE15071401',
    'SGDPM15071404',
    'AGDPM15071404',
    'SGDDE15071104'
    )
)

Delete from LogisticsPlan
where ID IN(
    Select ID from temp where rowID>1
)

 

该情景只用于一个字段数据重复时使用

相关文章:

  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2021-08-24
  • 2021-06-08
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
相关资源
相似解决方案