1.有可區分的主鍵,其餘數據相同select
select * from 表名 dl where dl.id not in (select min(d.id) from 表名 d
group by 重複列)數據
2.重複數據只能經過RowNum、RowId區分的數據vi
select * from 表名 where rowid in(
select max(rowid) from 表名 d
group by d.id,d.wareh_id,d.wareh_name having count(wareh_id)>1)co