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 is sql trigger example?

1032


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

1065


How long does it take to learn pl sql?

1044


what is the command used to fetch first 5 characters of the string? : Sql dba

1625


Can we use threading in pl/sql?

1021


What is sql performance tuning?

902


What is a primary key? Explain

960


How many primary keys can a table have?

987


What is triggering circuit?

1050


What does an inner join do?

1160


How do I save a sql query?

1001


How to get unique records from a table?

942


Is subquery faster than join?

1000


How do I count duplicates in sql?

1085


What is sql and also describe types of sql statements?

1038