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: Formating output in functions in PL/SQL

Re: Formating output in functions in PL/SQL

From: SKurosky <skurosky_at_aol.com>
Date: 19 Mar 2000 03:56:01 GMT
Message-ID: <20000318225601.11764.00002160@ng-ci1.aol.com>


>JINGYAN WROTE:

Hi,
> I need to create two functions, each called PRINT_IT to print a date, or a
>number value depending on how the function was invoked.
>
> 1. To print the date value, use “DD_MON_YY” as the input format, and
>‘FmMonth/dd/yyyy” as the output format. Make sure you handle invalid
input.
> 2. To print the number, use “999,999.00” as the output format.
>But I don't know how to format them. Please help me! I have tried several
>ways, no one works. Thank you a lot.
>Best Regards,
>Jingyan
>/*****************

Hi
Try to_char(vnum,'999,999.90');

     to_char(vdate,'FmMonth/dd/yyyy');
hth
sandy Received on Sat Mar 18 2000 - 21:56:01 CST

Original text of this message

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