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

Home -> Community -> Usenet -> c.d.o.misc -> Oracle8, object schema, REFs in nested table

Oracle8, object schema, REFs in nested table

From: <leskor_at_hron.fei.tuke.sk>
Date: Thu, 16 Apr 1998 19:01:07 -0600
Message-ID: <6h6643$l72$1@nnrp1.dejanews.com>


Hello,
can somebody help me with the object schema in Oracle8 ? ( REFs in nested tables )

For example, if I have the object schema ( it is from the Oracle8 documentation ):

   CREATE TYPE emp_t AS OBJECT ( eno number, ename char(31));    CREATE TYPE emps_t AS TABLE OF REF emp_t;    CREATE TABLE emptab OF emp_t;
   CREATE TABLE dept (dno NUMBER, employees EMPS_T)

      NESTED TABLE employees STORE AS deptemps;

how can I access attributes from the table emptab, by means of REF in nested table employees of the table dept ???

Example:
SELECT e.eno FROM THE ( SELECT employees FROM dept WHERE dno=1 ) e;

this doesn't work - there is error message, that eno is bad column name.

Thank you.

Richard

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading Received on Thu Apr 16 1998 - 20:01:07 CDT

Original text of this message

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