备份表数据回滚 insert into table1 select b. * from table2 b ,(select count(1) cnt from table1where num=00010 and rownum<2 )a where a. cnt=0;请问这句sql是什么意思? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 从语句上来说:如果表 table1 中,不存在 num=00010 的记录,就把 table2 中的数据,全量插入到 table1 中。 换一个写法,看看您能不能看懂。insert into table1 select b. * from table2 b where exists(select 0 cnt from table1 where num=00010) ; 好像是not exists 。。 求一SQL语句 php+java能否操作Oracle数据库 oracle中resultset错误 如何监控数据库中的表变化 如何通过游标修改! 大数据量的解决办法 初学oracle,为什么在sqlplus不能执行??(新手,新手,新新手) 高手们如何求记录集的记录总数? 如何删除一张表? 新手上路:关于Oracle权限问题 今天去面试dba 有两道题不会做 求助修改数据SQL编写
insert into table1 select b. * from table2 b where exists(select 0 cnt from table1 where num=00010) ;