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

What is schema in sql example?

595


how can we know the count/number of elements of an array? : Sql dba

568


What is the file extension for sql database?

515


How to find 3rd highest salary of an employee from the employee table in sql?

564


How to test for null values?

602






What is sorting in sql?

501


What are some emotional triggers?

568


What is the full form of sql?

532


Does inner join remove duplicates?

518


Why we use triggers in mysql?

557


What is mutating table error?

659


What does trigger mean in psychology?

532


Why having clause is used in sql?

535


Is oracle sql free?

536


What are inner outer left and right joins in sql?

511