I wanted to load two different data files, one after the other into the same table. Can I do this? (see below)
If not, what would be the correct structure to load two files?
OPTIONS ( SILENT=(FEEDBACK) )
LOAD DATA
INFILE "$DATFILE"
BADFILE "$BADFILE"
INFILE "$DATFILE2"
BADFILE "$BADFILE2"
INTO TABLE iwork TRUNCATE
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
(ACCT char
,DBT_MEMO_NBR char
,DSTRBTR_NM char
)
If not, what would be the correct structure to load two files?
OPTIONS ( SILENT=(FEEDBACK) )
LOAD DATA
INFILE "$DATFILE"
BADFILE "$BADFILE"
INFILE "$DATFILE2"
BADFILE "$BADFILE2"
INTO TABLE iwork TRUNCATE
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
(ACCT char
,DBT_MEMO_NBR char
,DSTRBTR_NM char
)