insert into c (select ... from a, b where a.id=b.id(+)); 我想验证一下结果是否正确,验证脚本该怎么写呢?
解决方案 »
- 一个3个表查询 数据量大 并用了notexists 速度慢问题
- 一条关于日期算法的sql语句?
- oracle 致命的双工通信协议错误
- 请问,编写一个PL/SQL程序时,是不是要将Exception语句块放到程序的最后?
- 求oracle 9i入门资料?
- 求Delete语句,删除前需判断是否存在(急,立刻结)。
- 急问,在FUNCTION中创建临时表
- 请问我的oracle enterrise manager sysman的密码忘了,请问还有另的帐号可以登录不?
- oracle表设计
- oracle 12c无法用plsql连接
- connect连接问题
- 怎么理解pid 、spid 、sid 和session_id?
直接SELECT 出來就可以啊!
中为什么需要a.id=b.id(+)这个东西,没必要啊
insert一条记录看看是否正确insert into c
(select ...
from a, b
where a.id = b.id(+)
an a.id = "XXX"
);
1.数据量的话,执行前count,准备插入的数据count,执行结束后count
2.验证数据的话,select ... from a, b where a.id=b.id(+) and (...) not in select * from c ; 用这个语句找到没有被插入到c中的数据 。其实个人觉得用另一种方法比较快:把数据导出成txt,然后用文本比较工具验证。