0

我有一条 SQL 语句,我试图从 IBM DB2 数据库上的控制台应用程序执行该语句。

MERGE INTO Table 1 AS A 
USING Table 2 AS B 
ON A.IDTEXT = B.IDTEXT AND A.STATE = 1 
WHEN MATCHED THEN 
UPDATE SET A.STATE = 5

但是,我收到此错误:

ERROR [42601] [IBM][SQLDS/VSE] SQL0104N  An unexpected token "MERGE" was found following "MERGE".  Expected tokens may include:  "MERGE".

我不确定出了什么问题。

4

0 回答 0