Problem Loading data using sqlldr [message #130176] |
Thu, 28 July 2005 10:11 |
sikyala
Messages: 33 Registered: May 2005
|
Member |
|
|
I have an Excel file with records that I need to load into an Oracle table. I want to use sql loader. However, some of the text in each row contains tabs and commas. Therefore, I don't think I can save it as a tab delimited text file or a comma delimited csv file. Is there a way I can specify in Excel how I want the file to be delimited or can someone provide me with a workaround? Thanks!
|
|
|
Re: Problem Loading data using sqlldr [message #130187 is a reply to message #130176] |
Thu, 28 July 2005 11:42 |
smartin
Messages: 1803 Registered: March 2005 Location: Jacksonville, Florida
|
Senior Member |
|
|
You can save it as a comma separated file, but put quotes around all of your columns that might have a comma as part of that column's text. Like:
100,12-DEC-2005,hello,"this, I'm afraid, has commas in it",23
Then in sqlldr control file you can use the clause "optionally enclosed by"
|
|
|
|
|
|
|
|