Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

<b>Inserting data into table with reference to table with nested tables</b>

508959Apr 26 2006 — edited Apr 26 2006
Hi !

How can I insert data to table with reference to table with nested tables?
If I use command "select" (sample code below) I've got error: ORA-22979: cannot INSERT object view REF or user-defined REF.

Table MIESZKANIA contain 3 nested tables.
Table LOKATORZY contain 1 nested table.

Sample code:
insert into LOKATORZY values(0001, 'Osuchowski', 'Jan', '60545632',
ZAMIESZKANIA_TYP(ZAMIESZKANIE((select REF(p) from MIESZKANIA p where p.ID_MIESZKANIA=1), to_date('04-12-1990','DD-MM-YYYY'), to_date('04-12-1990','DD-MM-YYYY'))));

Thanks for all helps !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2006
Added on Apr 26 2006
2 comments
359 views