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: UTL_FILE - Help

Re: UTL_FILE - Help

From: Guido Konsolke <dueto.spam_at_nomail.com>
Date: Wed, 17 Mar 2004 16:11:04 +0100
Message-ID: <1079534693.639330@news.thyssen.com>


Hi Jay,

comments inline...

"Jay" wrote...
> Hi All,
>
> Suppose I have cursor called EMP (multiple fields) and record is
> defined as
>
> EMP_REC EMP%ROWTYPE;
>
> Is it possible to use UTL_FILE.PUT_LINE(file1, EMP_REC) ?

What don't you simply try it?

>
> Also if I were to concatenate fields by ||, how can I keep a fixed
> width format(including whitespaces in the fields ) in the output?

PAD the variables or use the appropriate datatype.

> I meant to say
> if I do fname || lname, I want the output
>
> John Saxon
> Kelly Mitchell
> Patricia Hall
>
> rather than
>
> JohnSaxon
> KellyMitchell
> PatriciaHall
>
> THANKS A LOT!!!!
>
> J

hth,
Guido Received on Wed Mar 17 2004 - 09:11:04 CST

Original text of this message

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