What is the best strategy to use COMMIT in a pl/sql loop?
Answers were Sorted based on User's Feedback
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 |
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 |
What is a crud api?
How do I install microsoft sql?
What is group by in sql?
Which join is like inner join?
How to get the procedure's, function's name from a package if it is wrapped(both spec & body).
How does postgresql compare to mysql?
What are literals in sql server?
What is the difference between left join and right join?
Why indexing is needed?
what is 'mysqldump'? : Sql dba
where are cookies actually stored on the hard disk? : Sql dba
what does it mean to have quoted_identifier on? : Sql dba
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)