why we go for package? what are the advantages of using
instead of seperate procuderes or functions

Answer Posted / ramakrishna

package is collection of logically related pl/sql types
,items, subprograms. packages have following advantages over
procedures and functions are

1.reduces number of acces to database.since, When you call
a packaged PL/SQL construct for the first time, the whole
package is loaded into memory. Thus, later calls to
constructs in the same package require no disk input/output
(I/O).

2.we can have overloading,public and private,encapsulation
features (like java) in package

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

discuss about myisam key cache. : Sql dba

763


what are different types of keys in sql?

767


How many types of functions are there in sql?

666


Why is a trigger used?

697


What is the use of sql trace?

674






how to load data files into tables with 'mysqlimport'? : Sql dba

747


Do foreign keys improve performance?

748


Why functions are used in sql?

703


What is write ahead logging in sql server?

748


Why join is faster than subquery?

792


what's the difference between a primary key and a unique key? : Sql dba

702


Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.

760


how to concatenate two character strings? : Sql dba

745


What is nvl?

790


What are different sql data types?

685