PDA

View Full Version : SQL LOADER and datatype float


Ina Schmitz
03-11-2005, 01:09 AM
Hi all,

I have a table with a column x of type float(126).
For my data, I have a comma separated values file. In this file, for column
x there occur values like 345.4667848 or also 345.466E-02.
In my ctl-file for the SQL LOADER, I wrote:
x CHAR "TO_NUMBER(:x, '999.9999999') for this column.

The first number 345.4667848 then is accepted, but the second number
345.466E-02 with the E in it is rejected. How can I change it so that SQL
LOADER loads BOTH numbers?

Thanks a lot for help!

Cheers,
Ina

Guest
03-13-2005, 01:19 PM
you have to try

TO_NUMBER(TO_CHAR(:x, '999.999EEEE'),'999.999EEEE')

This should be work.


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service