1、数据库A表和B表的结构是一样的,怎么把A中的数据全部复制到B重,而且要去重复.
**
去除重复:select * from a minus select * from b;
**
插入:insert into b (select * from a minus select * from b);
或:insert into b (select * from a where a.id !=all(select id from b));
1、数据库A表和B表的结构是一样的,怎么把A中的数据全部复制到B重,而且要去重复.
**
去除重复:select * from a minus select * from b;
**
插入:insert into b (select * from a minus select * from b);
或:insert into b (select * from a where a.id !=all(select id from b));