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 -> table operator on table of rowids

table operator on table of rowids

From: Chris Bateman <chrisbateman_at_despammed.com>
Date: 30 Jan 2004 06:11:10 -0800
Message-ID: <51a52448.0401300611.6096b329@posting.google.com>


Is it possible to use the table operator on a PL/SQL table containing rowids?

As far as I can tell, the table operator can only be used on schema-level table types, not table types declared in PL/SQL. Schema table types are not allowed to be 'table of rowid' and schema level object types - of which I could create a table - are not allowed to have attributes of type rowid.

What I'm trying to achieve is something like the following without having to use dynamic SQL to create the in list.

OPEN my_ref_cursor FOR
SELECT *
FROM some_table
WHERE rowid IN (SELECT * from TABLE(CAST(plsql_table AS rowid_table)));

TIA
Chris Received on Fri Jan 30 2004 - 08:11:10 CST

Original text of this message

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