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 operating systems are supported by oracle sql developer?

970


What type of join is sql join?

988


what are the differences among rownum, rank and dense_rank? : Sql dba

1043


what is the use of friend function? : Sql dba

1024


Is primary key an index?

998


what is a cursor? : Sql dba

1029


Is join and inner join the same?

1010


Which is faster joins or subqueries?

992


what is 'mysqladmin' in mysql? : Sql dba

1028


how do you login to mysql using unix shell? : Sql dba

1086


Which sql statement is used to delete data from a database?

965


What is the maximum number of triggers, you can apply on a single table?

1000


Is a secondary key the same as a foreign key?

1040


What is the difference between truncate and drop statements?

1195


What are the packages in pl sql?

1017