oracle的数据库中,有两个结构完全相同的表A、B,表A数据多,表B数据少,如何进行比较操作,并将A多出的数据放入另一个表C中?急,请各位大哥多指点!!!
------解决方案--------------------
insert into c
select * from a
minus select * from b;
or
insert into c
select * from a
where not exists(select 1 from b where ..=a... and ..=a... and ....)