PL/SQL (MOSC)

MOSC Banner

Does Oracle Database PL/SQL support recursive objects? an object the includes array/table of same ty

In the Object-Relational Developer's Guide I found reference to subordinate/embedded types that are different - department includes address, for instance. This document also includes a section of resolving circular references, but again, between objects of different types. I am looking for the object to reference itself.

create or replace type a_obj is object (myself varchar2(10), parent number, children number);

/

Type A_OBJ compiled

create or replace type c_obj is table of a_obj;

/

Type C_OBJ compiled

create or replace type a_obj is object (myself varchar2(10), parent a_obj, children c_obj);

/

Error starting at line : 12 in command -

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center