I am currently using DB2 . I do not know much about load statement.
I am using this query to load data..
LOAD FROM “IXAC.CSV” OF DEL METHOD P (‘IX’,1,2,3,4,) MESSAGES
“SYAC.MSG” INSERT INTO SYNC.AC_COUNT ( “TYPE”, AC1, AC2, AC3,
AC4 ) ; COMMIT;
In “IXAC.CSV” there are 4 int values separated with comma. My problem is that how can i insert ‘IX’ with load statement as a constant with each row insert.
I tried this but not found any success. I am newer in database.
Help me ..
Thanks in advance …
Change your table definition in the database to have a default value for the column ‘IX’ (it looks like you want “TYPE”?).
Then do the load as normal, leaving out the IX column.