Hi I try to insert data from a script into a DB2 table which has an identity column. I read that using the syntax:
INSERT INTO SOME_TABLE OVERRIDING SYSTEM VALUE ...
would work, but it doesn't. Here is the exact query:
INSERT INTO SCHEMA.MYTABLE OVERRIDING SYSTEM VALUE (
IDENTITY_COLUMN
,SOMEVALUE
,CREATEDTIME
,UPDATEDTIME
) VALUES (
2
,'656566'
,'2012-07-12 16:25:34'
,NULL
);
I get the following error:
SQL0104N An unexpected token "VALUE" was found following "DE OVERRIDING
SYSTEM". Expected tokens may include: "<space>". SQLSTATE=42601
Thank you!