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: NESTED_TABLE_ID unavailable in PL/SQL?

Re: NESTED_TABLE_ID unavailable in PL/SQL?

From: Noel <tomekb_at_softman.pl>
Date: Fri, 18 Jun 2004 11:53:56 +0200
Message-ID: <caue1r$qlj$1@inews.gazeta.pl>


> Any reason I can access the NESTED_TABLE_ID pseudocolumn in a simple SQL
> query, and not when using the same query in a PL/SQL bloc?
> Any workaround to this problem? TIA.

But this works...( Oracle 8.1.6 )
SQL> create view v_t as
  2 select nested_table_id from table (select nt from t);

View created.

SQL> desc v_t

 Name                                             Null? Type
 ------------------------------- -------- ----
 NESTED_TABLE_ID                          RAW(16)

SQL> begin
  2 declare
  3 x varchar2(100);
  4 begin
  5 select nested_table_id into x from v_t;   6 exception when no_data_found then
  7 dbms_output.put_line('No rows in a table.');   8 end;
  9 end;
 10 /
No rows in a table.

--
TomekB
Received on Fri Jun 18 2004 - 04:53:56 CDT

Original text of this message

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