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 are the types of keys?

996


What are the qualities of 2nf?

1039


How do I sort a table in sql?

1044


What is dcl in sql?

960


What is difference between mysql and postgresql?

1152


Is trigger a stored procedure?

933


what are the limitations of identity column? : Transact sql

1108


Why we use triggers in mysql?

992


What do you understand by pl/sql packages?

1058


What are the set operators in sql?

1072


What is the process of copying data from table a to table b?

1091


How is data stored in sql?

1058


what is the difference between a web-garden and a web-farm? : Sql dba

1081


Explain what is rdbms?

1035


Define implicit and explicit cursors.

1144