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: REF CURSOR returning a PL/SQL Table.

Re: REF CURSOR returning a PL/SQL Table.

From: Adrian Billington <billiauk_at_yahoo.co.uk>
Date: 5 Feb 2002 00:37:42 -0800
Message-ID: <dee17a9f.0202050037.7da5ba20@posting.google.com>


Galen

When you use the TABLE expression to CAST a result set, you need to use an alias:-

Instead of:-

    query := 'select * from TABLE ( cast (l_data as groupSize3Array ))';

Try:-

    query := 'select t.* from TABLE ( cast (l_data as groupSize3Array )) t';

Also, the groupSize3Array MUST be created on the database and not be a PL/SQL declared type for the CAST expression to work.

HTH Adrian Received on Tue Feb 05 2002 - 02:37:42 CST

Original text of this message

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