ORA-00905:在Oracle的Merge语句中缺少关键字

时间:2016-01-09 18:59:44

标签: oracle oracle11g oracle10g oracle-sqldeveloper

我收到此错误帮助我: - ORA-00905:缺少关键字

在sql中合并语句

MERGE INTO TEMP1 T
USING (SELECT CHAR_VAR,VCHAR,VAR_CHAR2 FROM VAR_CHECK WHERE CHAR_VAR='Steven' AND VCHAR='King') S
ON (T.AUTHOR=S.CHAR_VAR)
WHEN MATCHED THEN 
UPDATE SET T.SNAME=S.VAR_CHAR2
WHEN NOT MATCHED
INSERT (T.AUTHOR,T.TOPIC,T.SNAME) VALUES (S.CHAR_VAR,S.VCHAR,S.VAR_CHAR2);

1 个答案:

答案 0 :(得分:4)

<div id="lH"> <audio controls id="aH"> <source src="http://www.w3schools.com/html/horse.ogg" type="audio/ogg"> <source src="http://www.w3schools.com/html/horse.mp3" type="audio/mpeg"> </audio> H </div> 之后缺少的关键字为THEN

WHEN NOT MATCHED