ORA-01407 错误解决
2010-02-16 16:27
162 查看
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);
上述多表联合更新时,有时会报“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);
示例:
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);
上述多表联合更新时,有时会报“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);
相关文章推荐
- ORA-01407: cannot update to null 错误解决
- 解决ora-01455错误
- ORA-600(17069)错误的解决过程
- 关于oracle 安装结束后的ORA-12560: TNS: 协议适配器错误的解决方法
- ORA-01034错误的解决办法
- 错误"ORA-04091: table is mutating, trigger/function may not see it"的原因以及解决办法
- Oracle 错误总结及问题解决 ORA
- Oracle 错误总结及问题解决 ORA
- 连接Oracle 10g时ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的 SERVICE_NAME 错误的解决
- navicat连接oracle数据库报ORA-28547: connection to server failed, probable Oracle Net admin error错误的解决方法
- 配置静态监听解决ORA-12514错误的案例
- 10gR1中ora-00201,ora-01103错误的解决办法
- 在软件开发中遇到ORA-06413错误的解决方法
- 解决升级oracle10g中出现ora-01092错误的办法
- MyEclipse database explorer 出现ORA-12705错误解决
- ora-00257:归档程序错误,在释放之前仅限于内部链接如何解决
- 诊断并解决ORA-04031 错误
- 错误编码:ORA-01033 的解析及解决
- 一个ORA-16014和ORA-00312错误的解决
- nvarchar2与varchar2转换---ORA-12714错误解决总结