您的位置:首页 > 数据库 > Oracle

oracle去重

2015-08-20 16:37 344 查看
1.oracle查找表中的重复数据

   select testid,count(1)

   from table

   group by testid

   having count(1)>1;

   testid 标签号

2.去重

   detele from tab_name a

   where col1,col2 in(

                                select col1,

                                col2

                                from tab_name

                                group by col1,col2

                                having count(*)>1);


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  去重 oracle