您好我尝试将脚本中的数据插入到具有标识列的 DB2 表中。我使用以下语法阅读:
INSERT INTO SOME_TABLE OVERRIDING SYSTEM VALUE ...
会工作,但它不会。这是确切的查询:
INSERT INTO SCHEMA.MYTABLE OVERRIDING SYSTEM VALUE (
IDENTITY_COLUMN
,SOMEVALUE
,CREATEDTIME
,UPDATEDTIME
) VALUES (
2
,'656566'
,'2012-07-12 16:25:34'
,NULL
);
我收到以下错误:
SQL0104N An unexpected token "VALUE" was found following "DE OVERRIDING
SYSTEM". Expected tokens may include: "<space>". SQLSTATE=42601
谢谢!