有没有唯一列如果有的情况下
delete b from a as b where exists(select 1 from a where b=b.b and ID>b.ID)--保留最大
delete b from a as b where exists(select 1 from a where b=b.b and ID<b.ID)--保留最小
其它方法参照整理贴,多数方法都可在oracle通用
参考资料:http://blog.csdn.net/roy_88/article/details/2715965
本回答被提问者和网友采纳