Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to tell oracle SQL*Loader thousand seperating character?

Re: How to tell oracle SQL*Loader thousand seperating character?

From: Doug <dougburns_at_yahoo.com>
Date: 25 Sep 2005 13:43:05 -0700
Message-ID: <1127680985.162515.213370@f14g2000cwb.googlegroups.com>


Christian,

I think this is similar to a question that came up recently. It won't work with an external table, but will with sqlldr

IIRC, for the following data file :-

1|111.111,0
2|456.123,5

I think you can do something like this, which is valid sqlldr syntax :-

LOAD DATA
INFILE 'test.txt'
TRUNCATE
INTO TABLE doug_test
FIELDS TERMINATED BY "|"

	(pk,
	test_value CHAR "TO_NUMBER(:test_value, '999,990.90',
			'NLS_NUMERIC_CHARACTERS = '',.''')"

)

HTH,

--
Doug Burns - Oracle DBA

dougburns_at_yahoo.com

http://doug.burns.tripod.com
http://oracledoug.blogspot.com
Received on Sun Sep 25 2005 - 15:43:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US