How to select from a table variable?
- From: "michael.young@xxxxxxxxxx" <michael.young@xxxxxxxxxx>
- Date: Thu, 3 Jan 2008 08:53:43 -0800 (PST)
How can I 'select' all items from a table variable?
Actually, I want this syntax to use to create a subquery that I can
use to join against.
I have a CSV string, and I wanted to use either
DBMS_UTILITY.comma_to_table or HTMLDB_UTIL.STRING_TO_TABLE to get the
values in a table format. Then I wanted to use this table variable
(collection) as if it were an actual data table.
From everything I have seen, this (select queries or DML against tablecollections) is not directly possible. It seems that I must basically
loop through all items in the table, and either use a pipelined
function and/or store the items in a temporary table.
Is this correct and/or recommended, or am I thinking about this all
wrong? What are the relevant considerations for the various
approaches to do what I need?
I'm using Oracle 10gR2.
TIA,
Mike
.
- Follow-Ups:
- Re: How to select from a table variable?
- From: sybrandb
- Re: How to select from a table variable?
- Prev by Date: Re: Running SQLs betweem RAC Instance
- Next by Date: Re: Running SQLs betweem RAC Instance
- Previous by thread: database assistant 8.0.5 is not executing
- Next by thread: Re: How to select from a table variable?
- Index(es):
Relevant Pages
|