ORA-01407 错误解决
来源:互联网 发布:照片合成用什么软件 编辑:程序博客网 时间:2024/05/09 02:10
from:http://www.raincat.net/blog/showlog.asp?cat_id=6&log_id=428
示例:
SQL> update tb_test_log a
2 set game_deal_log_id = (select game_deal_log_id
3 from test b
4 where a.table_id = b.table_id);
2 set game_deal_log_id = (select game_deal_log_id
3 from test b
4 where a.table_id = b.table_id);
上述多表联合更新时,有时会报“ORA-01407: cannot update to null”错误,原因系存在表间关联不到的记录(null)。
解决方法:
SQL> update tb_test_log a
2 set game_deal_log_id = (select game_deal_log_id
3 from test b
4 where a.table_id = b.table_id)
5 where exists (select 1 from test b where a.table_id=b.table_id);
2 set game_deal_log_id = (select game_deal_log_id
3 from test b
4 where a.table_id = b.table_id)
5 where exists (select 1 from test b where a.table_id=b.table_id);
- ORA-01407 错误解决
- ORA-04091错误解决
- ora-14404错误解决
- ORA-00381 错误解决
- ORA-00257 错误解决
- ORA-27125错误解决
- 解决ORA-00020错误
- 解决ORA-01031错误
- ORA-1555错误解决
- 解决ORA-00020错误 .
- 解决ORA-01779错误
- ora-01207错误解决
- ORA-16038错误解决
- ORA-3136 错误解决
- ORA-12560 错误解决
- ORA-16038错误解决
- ORA-01093错误解决
- ORA-1200错误解决
- php 技术内幕学习1
- Android学习笔记02_菜单(menu)
- CentOS 5.3支持ntfs分区的两种办法
- FAQ7: 如何正确的对待汇编学习和反汇编学习?
- VC 系统热键
- ORA-01407 错误解决
- 巧妙删除Win7生成的保留分区
- c#操作word表格
- 巧用DOS命令一键帮你清理磁盘垃圾
- 字符串常识
- 教你巧用DOS命令快速把系统看个透。
- 教你用c语言实现dos攻击
- 另类技巧:使用DOS收发MAIL
- 突破防抓取限制httpclient配合htmlparser抓取网站