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!

Bulk collect using TYPE for multiple tables

bkjSep 20 2013 — edited Sep 23 2013

I have 100 plus tables want to create a procedure that will take all the table names as input where in each table it will do bulk delete and bulk insert  and want to create TYPE according to table names run time.


Cursor :-

CURSOR C1 IS

SELECT SOURCE_NAME, TARGET_NAME FROM TABLE_INFO;


Table_info will store all the source and target table names.


After getting the target names want to pass this in TYPE in place of T1 so that dynamically will create the type of that particular target table.



Syntax for Type :-

TYPE T_TYPE

IS

  TABLE OF T1%ROWTYPE;

  T_BULK T_TYPE;

Please let me know if there is any workaround.

Thanks,

Bhavik

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2013
Added on Sep 20 2013
4 comments
541 views