In a PL/SQL block,which loop type should be used in a performance point of view & Why (as both loops can do the same task)
1) open - Fetch loop
2) for loop

Answer Posted / mihir kar

For loop is always faster than explicitly open -fetch loop.
the main advantages of for loop is it internally works like bulk collect limit 100
it hold 100 record and fetch so it is always preferebale.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what does plv msg allows you to do?

662


How to install oracle sql developer?

560


How to connect a sql*plus session to an oracle server?

617


How does rowid help in running a query faster?

961


Is sql a microsoft product?

492






What are the possible values that can be stored in a boolean data field?

509


Does pl sql work in mysql?

529


What are all ddl commands?

543


What does closing a cursor do?

757


What is aggregate function in sql?

529


How to fetch alternate records from a table?

674


What are pl sql data types?

545


What is difference sql and mysql?

527


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

522


Is oracle sql free?

534