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...

What is difference between a Cursor declared in a procedure
and Cursor declared in a package specification ?

Answer Posted / ratan singh sengar

SP is a set of SQL Statements that resides in server. Advantage of SP is just that it is pre compiled and available in the server. So, whenever this SP is called, its executed instantly since its already been compiled. This makes the faster performance while executing the SP.
cursor:
Cursors are add on feature of SP , for row by row validations.
For instance : You have a list of employees belong to various department. For calculating the bonus % which varies for department to department, you use cursors to calculate Bonus.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to call a javascript function from pl sql?

1143


Can we use view in stored procedure?

902


Can a select statement fire a trigger?

1164


what are the authentication modes in sql server? How can it be changed? : Sql dba

1433


What is use of package in pl sql?

1015


what is the difference between cluster and non cluster index? : Sql dba

1027


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

1438


what is uncommittable transactions? : Transact sql

996


Define union, minus, union all, intersect ?

1006


What is parameter substitution in sql?

1029


what is a constraint? : Sql dba

1172


Show the two pl/sql cursor exceptions.

1199


What is a call statement? Explain with an example.

1010


Why function is used in sql?

951


Is sql better than excel?

1155