Home » SQL & PL/SQL » SQL & PL/SQL » urgent
urgent [message #21172] Wed, 17 July 2002 02:15 Go to next message
sha
Messages: 84
Registered: July 2002
Member
Hi,
If I am using the code below it is working but if my data is in a separate text file then how should I call the file in the code below so that when I used sqlloader
abc.ctl file name is and the code is below for this filename.
LOAD DATA
INFILE *
INTO TABLE load_user_delimited FIELDS TERMINATED BY ","
TRAILING NULLCOLS
(data1, data2, username "USER")
BEGINDATA
( 1111,aaaaa
2222,bbbb) instead of using this data here I will put this data in a text file and I have to call the file here.
thanx
/
Re: urgent [message #21174 is a reply to message #21172] Wed, 17 July 2002 02:35 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
u need to use
infile 'example.dat'
Re: urgent [message #21177 is a reply to message #21174] Wed, 17 July 2002 04:09 Go to previous message
Ravi
Messages: 251
Registered: June 1998
Senior Member
Remove begin data .... your code should be only this

LOAD DATA
INFILE 'a.txt'
INTO TABLE load_user_delimited FIELDS TERMINATED BY ","
TRAILING NULLCOLS
(data1, data2, username "USER")
Previous Topic: NLS-Char Set Problem.
Next Topic: which tables to compare?
Goto Forum:
  


Current Time: Thu Apr 18 21:33:14 CDT 2024