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

Is t sql a programming language?

1005


What is sql and how does it work?

1087


List different type of expressions with the example.

893


how to drop an existing table in mysql? : Sql dba

982


Is there any restriction on the use of union in embedded sql?

1099


What are %type and %rowtype for?

1012


What are conditional predicates?

987


what is online transaction processing (oltp)? : Sql dba

936


What is varchar data type in sql?

1011


what is myisam? : Sql dba

1000


what is view? : Sql dba

912


What is the difference between the conventional and direct path loads? : aql loader

1315


How do I run a script in sql developer?

899


Explain scalar functions in sql?

1017


How many tables can a sql database have?

925