Dynamic Sql - insert into x select * from y
jaggyamJan 26 2010 — edited Jan 27 2010Hello Everyone,
I am trying to write a SP to simulate something similiar to "insert into <source_table> select * from <target_table>" (but record by record) using DBMS_SQL.
Struncture of source and target tables are identical.
Name of the source and target tables will be passed as input to the SP
Need to insert row by row. want to loop thru the source data and insert record by record into target.
no of columns, and column specification would vary based on the source and target table.
Can you guys please help me to complete this...
Thanks inAdvance,
Jaggyam