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: sqlldr

Re: sqlldr

From: gazzag <gareth_at_jamms.org>
Date: 16 Mar 2006 08:22:51 -0800
Message-ID: <1142526171.607084.38990@i40g2000cwc.googlegroups.com>


zak.khalid_at_gmail.com wrote:
> I want to concatenate a string to a colum as I load into the table....
>
> so the file will contain apple.1, but when I use sqlldr to load it as
> apple.1_at_net.com
>
> any ideas?

zak.khalid_at_gmail.com wrote:
> I want to concatenate a string to a colum as I load into the table....
>
> so the file will contain apple.1, but when I use sqlldr to load it as
> apple.1_at_net.com
>
> any ideas?

Assuming:

desc t1;

Name                                      Null?    Type
----------------------------------------- -------- ------------

ID                                                 NUMBER
EMAIL                                              VARCHAR2(50)

The following simplified control file shows an example:

load data
infile 'data.csv'
into table t1
fields terminated by ','
(

	id,
	email "concat(:email, '@email.com')"

)

Note the double-quotes around the SQL function and the colon before the field name, "email".

HTH -g Received on Thu Mar 16 2006 - 10:22:51 CST

Original text of this message

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