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

Where do we use pl sql?

943


How many joins in sql?

945


What is primary key secondary key alternate key candidate key?

980


what is the different between now() and current_date()? : Sql dba

934


how can you see all indexes defined for a table? : Sql dba

934


How do I audit the sql sent to the server?

954


Is oracle and sql same?

954


Is postgresql a nosql database?

1074


Can we perform dml in function?

1014


How do you bind variables in pl sql?

1034


How do I add a database to sql?

1062


What is the reports view in oracle sql developer?

925


Is sql considered coding?

994


What is latest version of sql?

982


What is difference between rank () row_number () and dense_rank () in sql?

1049