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 procedure and function?

1031


Is a table valued function object?

1069


Is not null in sql?

1041


Differentiate between sga and pga.

1204


What is %rowtype in pl sql?

1025


How do I write a cron which will run a sql query and mail the results to agroup?

1027


What are variables in pl sql?

1226


what is a foreign key ? : Sql dba

1109


Can you call pl/sql package functions from within a fast formula?

1080


What is acid property in a database?

1083


What is rank () in sql?

995


Which is the correct statement about truncate and delete?

1166


What is group function in sql?

1057


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

1267


Is sql considered coding?

1085