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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between inner and outer join? Explain with example. : Sql dba

1018


When is the explicit cursor used ?

1022


what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba

1122


What is compound trigger?

1025


What is t sql in sql server?

1062


What is mdf ldf and ndf?

987


how to create a new table by selecting rows from another table in mysql? : Sql dba

1074


What are different functions in sql?

933


How to take user input in pl sql?

1153


What is sql indexing?

1004


What is function and procedure?

1023


What is the difference between a query and a report?

958


what is a database? : Sql dba

1156


Which nosql database is best?

971


How many developers work on postgresql?

966