Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is $$ in sql?

984


Is sql difficult?

1148


What is the use of procedures?

971


What are sql objects?

1073


Explain how exception handling is done in advance pl/sql?

994


What has stored procedures in sql and how we can use it?

1071


Explain spool.

1172


What does the argument [or replace] do?

1073


What is the least restrictive isolation level? : Transact sql

1059


How do I run sql?

1169


what are the nonstandard string types? : Sql dba

1134


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1176


How do you bind variables in pl sql?

1088


how many triggers are allowed in mysql table? : Sql dba

1059


how many ways we can we find the current date using mysql? : Sql dba

1094