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

difference between oracle 8i and oracle 9i

8 Answers  


What if we write return in procedure?

0 Answers  


differentiate between float and double. : Sql dba

0 Answers  


How do you remove duplicates without using distinct in sql?

0 Answers  


Do ddl statements need commit?

0 Answers  






Define sql delete statement.

0 Answers  


Why do we use sql constraints? Which constraints we can use while creating database in sql?

0 Answers  


Explain the rollback statement?

0 Answers  


Why procedure is used in sql?

0 Answers  


What does desc stand for?

0 Answers  


How do you select unique values in sql?

0 Answers  


What does the hierarchical profiler does?

0 Answers  


Categories