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: How to set the size of string returned by PL/SQL functions?

Re: How to set the size of string returned by PL/SQL functions?

From: <madhusreeram_at_gmail.com>
Date: Thu, 04 Oct 2007 11:45:11 -0700
Message-ID: <1191523511.158452.137750@k79g2000hse.googlegroups.com>


On Oct 4, 9:37 am, "John Heitmuller." <john.heitmul..._at_jrfcorp.net> wrote:
> > create or replace view ..... as
> > select ...,..., ..., ... ,cast(myfunc(myparam) as varchar2(15))
> > mycol, ... from ... where ...;
>
> Brilliant! Thanks, David.

You could also use substr , as in create or replace view .. as ....select ....substr(param,1,15) as param ... from ...

-Madhu Sreeram Received on Thu Oct 04 2007 - 13:45:11 CDT

Original text of this message

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