I am new to PL/SQL
. I have a scenario where we have one staging table STG_MAIN_CF_EVENT
. It has the information that needs to be loaded into two different tables: CUSTOMER_FEEDBACK_STG
and CF_EVENT_STG
.
For every record in STG_MAIN_CF_EVENT, I need to create a primary key in CUSTOMER_FEEDBACK_STG
and insert into this.
Can someone let me know how to achieve this in For looping dynamically.
Copyright Notice:Content Author:「Bharat」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25907682/for-loop-in-pl-sql