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 bond code in materialized view?

3051


How global cursor can be declare with dynamic trigger ?

2268


how to use regular expression in pattern match conditions? : Sql dba

1084


define data blocks ? : Sql dba

1040


What is nvarchar in sql?

972


How would you reference column values before and after you have inserted and deleted triggers?

1111


What does select * from mean in sql?

3325


What is sql trigger example?

1108


How to get unique records from a table?

1019


how to show all tables with 'mysql'? : Sql dba

1155


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

1239


What is database sql?

1092


What does trigger mean in slang?

1119


What is orm in sql?

1096


Is sql workbench free?

1040