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!

how to use cursor in inserting data from table to another

2656880Nov 3 2014 — edited Nov 6 2014

hi all,

i am newbie in oracle and have an issue to deal with my table

i have 2 table lets say (c1) and (c2),

c1 contain the following columns (product_number,product_name,description)

c2 contain the following columns (product_code,product_id,description)

i need to build anonymous blocks including cursor,that cursor fetch the c2 data to insert them in c1 as the following:

product_code = product_number,

product_id = product_name,

description = description

can any one help please...?

thanks for all,

Best regards.

This post has been answered by ddf_dba on Nov 4 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2014
Added on Nov 3 2014
36 comments
25,761 views