What is the best strategy to use COMMIT in a pl/sql loop?

Answers were Sorted based on User's Feedback



What is the best strategy to use COMMIT in a pl/sql loop?..

Answer / sudhakar naraparaju

It depends on the number of records being looped. If it is
a huge table then it is better to commit after a specific
number of transactions are completed. Even better to do
inside the loop so that the data is commited for every set
looped.

Is This Answer Correct ?    11 Yes 0 No

What is the best strategy to use COMMIT in a pl/sql loop?..

Answer / anil_abbireddy

End of the Block

Is This Answer Correct ?    3 Yes 2 No

What is the best strategy to use COMMIT in a pl/sql loop?..

Answer / kalyan maddipati

We can use savepoint. This transactional control statement
can be used to save records at perodic intervals

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

How to convert lowercase letters to uppercase and uppercase letters to lowercase in a string. (ex, AbcdEfG should convert as aBCDeFg)

3 Answers   TCS,


How would you hide a table in sql. ie the table can be only visible to its maker?

3 Answers  


how a reference cursor works?what all adnvantages are gained with it..specify the situation?

4 Answers   TCS,


HOW TO PRINT * ** *** **** ***** BY USING SQL QUERY? (MAY BE USING SCRIPT)

8 Answers   BeBo Technologies,


What is the use of procedures?

0 Answers  






What is not in sql?

0 Answers  


How many clustered indexes can you have?

0 Answers  


What are tables in sql?

0 Answers  


Can we insert in view in sql?

0 Answers  


What is the difference between a database and a relational database?

0 Answers  


Why do we use function in pl sql?

0 Answers  


What does subquery mean in sql?

0 Answers  


Categories