美文网首页
ORA-30926: unable to get a stabl

ORA-30926: unable to get a stabl

作者: 氕氘氚_笔记 | 来源:发表于2019-10-18 15:47 被阅读0次
merge into tab1  
using tab2  
on(tab1.id=tab2.id) 
when matched then  
  update set xxxxx
WHEN NOT MATCHED THEN
 insert xxxxxxxx

Tab2里有重复的数据,导致更新异常
merge在做update子句的时候,只能处理1对1或1对0的关系,不能处理多对1或多对多的关系,否则会导致ora-30926 错误。

相关文章

网友评论

      本文标题:ORA-30926: unable to get a stabl

      本文链接:https://www.haomeiwen.com/subject/sioimctx.html