关于merge into 报错,求指导
对于 merge into 有一个搞错是 在 on 中写了 列,而 update 中又更新了改列,则会报一个
无法更新 ON 子句中引用的列,
但是 我发现我们生产上 ,写了一个这样的情况即
merge into tbl a
(select col , col2
from tbl2) b
on (a.col = '2')
when matched then update
set a.col = b.col
但是没有报错,而且还更新成功了,很奇怪,请问大家知道为什么吗?