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: Using functions in SQL*loader

Re: Using functions in SQL*loader

From: Nathan D. Hughes <nhughes_at_well.com>
Date: 1997/09/17
Message-ID: <5vpe74$hge$1@was.hooked.net>#1/1

Jure Vehovec <Jure.Vehovec_at_factorb.si> writes:

>Is it possible tu use SQL functions in SQL*loader.
>For example TRANSLATE.

You can use SQL functions that return single value results in the control file. Append the function ot the end of the line, seperated in double quotes, and make reference to the column value by preceding it with a colon. I.E:

<snip>

is_current CHAR	"DECODE(RTRIM(LTRIM(UPPER(:is_current))),
		    'TRUE', 'T', 
		    'FALSE', 'F', 
		    NULL)",
wire_gauge CHAR	"RTRIM(LTRIM(:wire_gauge))",
<snip> Received on Wed Sep 17 1997 - 00:00:00 CDT

Original text of this message

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