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

Answers were Sorted based on User's Feedback



In a PL/SQL block,which loop type should be used in a performance point of view & Why (as both l..

Answer / monika

for loop is faster then open -fetch loop

Is This Answer Correct ?    1 Yes 1 No

In a PL/SQL block,which loop type should be used in a performance point of view & Why (as both l..

Answer / nidhi

yes For Loop will be faster than the open fetch loop

Is This Answer Correct ?    0 Yes 0 No

In a PL/SQL block,which loop type should be used in a performance point of view & Why (as both l..

Answer / swastik

yes for loop is faster tan loop-fetch
in loop there is exit statement to control the loop
in for loop it is an implicitly declared integer which is incremented or decremented by 1 until the upper bound or lower bound is reached

Is This Answer Correct ?    0 Yes 0 No

In a PL/SQL block,which loop type should be used in a performance point of view & Why (as both l..

Answer / 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

More SQL PLSQL Interview Questions

What is an Exception ? What are types of Exception ?

2 Answers  


What is oracle sql developer?

0 Answers  


How can triggers be used for the table auditing?

0 Answers  


what is a relationship and what are they? : Sql dba

0 Answers  


How do sql triggers work?

0 Answers  






Write the order of precedence for validation of a column in a table ?

2 Answers  


what is transaction? : Sql dba

0 Answers  


What are the advantages of sql?

0 Answers  


What is primary key in db?

0 Answers  


Is sql microsoft?

0 Answers  


how will you find out the last three records in a table with n no of records and delete them

3 Answers  


what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba

0 Answers  


Categories