首先你进行imp恢复的时候,应该先将库里面现存的表drop掉,以防万一可以先备份数据; 然后你在进行imp就不会有问题了,如果还存在重复数据那就证明你exp导出的数据就有重复数据; 那就是另一种情况了,如果确定是重复的直接删了即可delete from table1 t1 where exists(select 1 from table2 te where t1.rowid > t2.rowid ) and t1.id =t2.id )--id为你是通过哪些字段认证数据是重复的字段名,可变!
括号括错了,是这样的:delete from table1 t1 where exists(select 1 from table2 te where t1.rowid > t2.rowid and t1.id =t2.id )
然后你在进行imp就不会有问题了,如果还存在重复数据那就证明你exp导出的数据就有重复数据;
那就是另一种情况了,如果确定是重复的直接删了即可delete from table1 t1 where exists(select 1 from table2 te where t1.rowid > t2.rowid )
and t1.id =t2.id )--id为你是通过哪些字段认证数据是重复的字段名,可变!