How to write a control file for below data file ( Its a fixed length) [message #227022] |
Tue, 27 March 2007 02:50 |
donind
Messages: 95 Registered: February 2007
|
Member |
|
|
Hi,
Here is my table
create table sample1 (name varchar2(5), num number(2));
sample.txt(Datafile)
vikram12
sharma13
sonu 14
Here is my control file
load data
infile 'C:\sample.txt'
into table sample1
fields terminated by "," optionally enclosed by '"'
( name char(5), num char(2) )
But it rejecting all the records. Just let me know where i went wrong.
Thanks in advance
|
|
|
|
|
Re: How to write a control file for below data file ( Its a fixed length) [message #227187 is a reply to message #227040] |
Tue, 27 March 2007 08:33 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
donind wrote on Tue, 27 March 2007 04:32 | Hi,
Its not a comma seperated data file.
if i remove this line "fields terminated by "," optionally enclosed by '"' "
will it work fine.
|
Why don't you try it and tells us what happens? Is it really that hard to try?
If you want to show us a valid picture of your data, use code tags so we can see it in it's true form. After all thesep osts you should know that by now.
|
|
|