postgre 行号

delete from declare_declareinfo_1 where guid in(select guid from (
SELECT guid,
ROW_NUMBER() OVER(PARTITION BY guid, guid ORDER BY guid asc) AS Row
FROM declare_declareinfo_1
) dups
where
dups.Row > 1)

posted @ 2022-08-01 15:20  徐徐图之  阅读(145)  评论(0编辑  收藏  举报