Hi,
We are using SqlLoader to load files into our Oracle database, however at load time we need to specify certain constant values to be loaded as well. So, instead of coming from the Data files used to load the rest of the data, this constant data will somehow have to be specified in the control file. I've tried something like this:
there is of course no problem if the "constant" line is omitted, however - upon its inclusion - all rows reject...
Is this possible? The interspersing of datafile data and constant, control-file specified data???
Please help - any help appreciated!!!!!!!

dora
We are using SqlLoader to load files into our Oracle database, however at load time we need to specify certain constant values to be loaded as well. So, instead of coming from the Data files used to load the rest of the data, this constant data will somehow have to be specified in the control file. I've tried something like this:
Code:
Load data
into table Table
append
fields terminated by "|"
(
constant_column constant "Constant Value",
column1 char ":column1",
column2 char ":column2",
...
columnN char ":columnN"
)
there is of course no problem if the "constant" line is omitted, however - upon its inclusion - all rows reject...
Is this possible? The interspersing of datafile data and constant, control-file specified data???
Please help - any help appreciated!!!!!!!
dora