variable in sqlldr - help [message #152039] |
Tue, 20 December 2005 11:29 |
ozzy80
Messages: 55 Registered: June 2005
|
Member |
|
|
Hi all,
I have a data file and I need to load the data to a table. I can do that using sqlldr. But in that table I also need to load an additional column (which is an URL) whose lost value depends on the first column value of the row...
example:
data file....
1|2|3|4
table columns...
NUM1 number
NUM2 number
NUM3 number
NUM4 number
URL varchar2
the value of the URL will be "http://test.com/class='NUM1 value'
so can my control file look like this?
OPTIONS(ERRORS = 99999)
LOAD DATA
DISCARDMAX 99999
APPEND INTO TABLE test
FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '"'
(NUM1,
NUM2,
NUM3,
NUM4,
URL CONSTANT 'http://test.com/class=':NUM1)
Please help!!!
Thanks,
Ozzy
|
|
|
|
|