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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sql similar to python?

715


What is the most restrictive isolation level? : Transact sql

768


what is isam? : Sql dba

768


What are all the common sql functions?

751


What type of database is cloud sql?

778






How do I run pl sql in sql developer?

855


What is pl sql script?

731


which command using query analyzer will give you the version of sql server and operating system? : Sql dba

700


What does where 1 1 mean in sql?

746


Can a foreign key be a duplicate?

680


Which type of cursor is used to execute the dml statement?

707


How do I truncate a word?

705


What is sql deadlock?

741


What is clause in sql?

758


What is $$ in sql?

728