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!

Insert into nested table select from

Sa SiSep 22 2018 — edited Sep 24 2018

I have a select as below

select empid,ename, salary, address1, address2, country, zip from emp;

using the above select I want to insert data into nested table. how can I do it ?

create table emp_dtl(

empid,

ename,

salary,

emp_address emp_addr)

Nested table emp_address store as empaddr_tab;

create type emp_address as object

(

address1,

address2,

country,

zip)

create type emp_addr is table of emp_address;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2018
Added on Sep 22 2018
24 comments
12,291 views