SQL> merge into book b
2 using book1 b1
3 on (b.bookid = b1.bookid)
4 when matched then
5 update set b.bookid = 'tp2001--001'
6 when not matched then
7 insert values (br.bookid, br.cardid, br.bdate, br.sdate);
merge into book b
*
第 1 行出现错误:
ORA-00947: 没有足够的值
Restrictions on the merge_update_clause This clause is subject to the following restrictions:
You cannot update a column that is referenced in the ON condition clause.
You cannot specify DEFAULT when updating a view.