| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.oracle -> Sqlloader: All database in one single plain text file
Hi all,
I'm trying to use sqlloader to import a database with multiple different tables which has been exported to one single plain text file. No fixed lenght. Let's say database.txt is something like
fruits,orange,orange fruits,banana,yellow fruits,pear,green
żIs it possible to try an approach based on WHEN statements? I mean:
LOAD DATA
INFILE database.txt
FIELDS TERMINATED BY ','
WHEN (first field is 'fruits')
(name, color)
WHEN (first field is 'users')
(name, age, visits, address, active, since)
I only whant to know if it is possible or not, but will wellcome advice in ctl file sintax.
Thanks in advance and best regards Received on Wed Feb 25 2004 - 12:04:21 CST
![]() |
![]() |