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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Newbie : PL/SQL Function Return value

Re: Newbie : PL/SQL Function Return value

From: Lee Staples <lee_at_cybicom.co.za>
Date: Wed, 16 Aug 2000 08:44:14 +0200
Message-ID: <966407319.654444@proxy.lia.net>

Thanks Stefan - that's done the trick.

Regards,
Lee.

Stefan Grundmann <s.grundmann_at_t-online.de> wrote in message news:8nbumg$4rg$15$1_at_news.t-online.com...
> Hello Lee!
>
> You have to limit to length of your function-based-columns in the related
> view by using Oracles function substr().
>
> create or replace view example_view
> as
> select
> ...
> substr ( your_function(...), 1, xxx ) your_column_name,
> ...
> from
> ...
>
>
> where xxx is the appropriate length of the column you need.
>
> The problem is, that in Oracle the return-type cannot be limited. So the
> varchar2-return-type is of length 4000 (or greater, if Oracle changes
 that).
>
> Stefan
>
Received on Wed Aug 16 2000 - 01:44:14 CDT

Original text of this message

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