2021-04-14
程序员文章站
2022-06-02 13:03:51
...
在oracle中,有些数据完全一样,要清除掉重复的,只保留一条不重复的数据。
-
delete table1 where rowid not in (select max(rowid) from table1 group by col1 ,col2 )
-
DELETE table s WHERE rowid < (SELECT MAX(rowid) FROM table q WHERE q.name = s.name)
推荐阅读