首页 > Linux操作系统 > Linux操作系统 > 刪除重復紀錄的兩種方法!
方法一
delete from i a where a.rowid<(select max(rowid) from i b where a.no=b.no)
方法二
delete from i where rowid in (select rowid from (select no,row_number()over(partition by no order by no) rn from i )
where rn>1)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10768286/viewspace-83463/ ,如需转载,请注明出处,否则将追究法律责任。