当我使用合并语句时,我得到了错误。
Error code 30926, SQL state 99999: ORA-30926: unable to get a stable set of rows in the source tables
这是我的查询:
merge into dept_fc_link l
using
(select distinct dept_id,f_id,stk_point from temp_dept_fc_link) t
on (l.dept_id = t.dept_id)
when matched then
update set l.stk_point = t.stk_point
when not matched then
insert(l.dept_id,l.f_id,l.stk_point) values(t.dept_id,t.f_id,t.stk_point);
能指出我的错误吗?