问个sql问题 两个表的结构完全一样,但是我要实现的的是table1里面有的id,就不从table2中select出来insert into table1 (select * from table2); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 insert into table1 (select * from table2 where id not in (select id from table1)); insert into table1 (select * from table2 where not exists (select * from table1 where table2.id=table1.id)); insert into table1 (select * from table2 where id not in(select id from table1)); 你是不是要用 minus 或 union 呢?抱歉 没看懂 你啥意思 select * from table1minusselect * from table2 存储空间问题、 急:oracle临时表空间使用率为零 请教dbms_job定时执行的写法 一个oracle数据库文件自动增大的问题,大侠们帮忙? 怎么找出一个表的主键? 在SQL语句中如何存取Oracle 中的BLOB类型的数据?(在线等待) 高级队列中的消息历史问题 ★★ 在linux中怎么启动OEM,已经添加了资料档案库,用什么命令。★★ 重建数据库时如何修改字符集(oracle 11g) oracle 存储过程求大神帮忙优化一下 关于动态游标的问题 奇怪,分组SQL语句的问题得到明细结果和总结果不一致!!!!
(select * from table2 where not exists (select * from table1 where table2.id=table1.id));
minus
select * from table2