/* 查询重复记录 */
select a,b from tableName aa
where aa.rowid !=
(select max(rowid) from tableName bb where aa.a=bb.a ); rowid 是oracle 里每个表都有的一个特殊字段。
select a,b from tableName aa
where aa.rowid !=
(select max(rowid) from tableName bb where aa.a=bb.a ); rowid 是oracle 里每个表都有的一个特殊字段。
where tablename.a=b.a