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: yinshu zhang <zhang_yinshu_at_yahoo.com>
Date: Wed, 17 Mar 2004 20:51:05 -0500
Message-ID: <jAk6c.1$tz5.1903@newstest.equant.net>


Try to think of UTL_FILE is simular as DBMS_OUTPUT except file handle will things easlier.

yinshu

Jay wrote:

> "Guido Konsolke" <dueto.spam_at_nomail.com> wrote in message news:<1079534693.639330_at_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?
>>
> 
> 
> I tried it and it says imcorrect number of arguments...Any other to do this?
> 
> Thanks!
> 
> 
> 
> 

>>>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 - 19:51:05 CST

Original text of this message

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