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

Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL Help (UTL_FILE)

Re: PL/SQL Help (UTL_FILE)

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Wed, 17 Mar 2004 08:26:46 -0800
Message-ID: <1079540782.162788@yasure>


Comments in-line.

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) ?

No. Name the columns.

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

RPAD

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Wed Mar 17 2004 - 10:26:46 CST

Original text of this message

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