Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: sqlloader question
Lyuda,
Did you get an answer for this? You can try using the SUBSTR command to read the 7 char data string and rebuild it into something longer like:
col_dat "substr(:col_seq,1,2) || '--' || substr(:col_seq,3,3) || '--' || substr(:col_seq,6,2)"
Hope this helps
Tom Mercadante
Oracle Certified Professional
-----Original Message-----
Sent: Thursday, December 27, 2001 1:56 PM
To: Multiple recipients of list ORACLE-L
I need to load a text format file into my database using sqlloader. The
table I am loading into contains a special code column 9 positions long
with a following format ##--###--## (note dashes in between). Dashes are
being stored in the database! (don't ask me why :-) ). My input file data
for that column comes in straight text ( no dashes, of course ). It is 7
positions long.
Is there a way to somehow input dashes using control file while loading
data? I've looked 'concatenate' sqlloader command. It is not going to take
care of my need.
Thank you to everyone who replies. Have a safe a joyful new year.
Lyuda Hoska
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: lhoska_at_calibresys.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Dec 31 2001 - 07:54:22 CST
![]() |
![]() |