Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

DB2 Insert statement not working for me

$
0
0
Hello,

I am trying to get the below insert statement to work but it is coming back with the error below

sqlcode: -206

sqlstate: 42703


Can anyone offer any advice ?

Code:

INSERT INTO table1 (DATE,ID,NUMBER,BOOLEAN,FLOAT,TYPE,UNITS) SELECT DATE,ID,NUMBER,BOOLEAN,FLOAT,TYPE,UNITS FROM table2
where table1.DATE NOT IN (select DATE from table2);


Viewing all articles
Browse latest Browse all 13329

Trending Articles