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 the largest value that can be stored in a byte data field?

525


What are joins in sql?

547


What do you understand by exception handling in pl/sql?

585


how to get help information from the server? : Sql dba

532


Which is better varchar or nvarchar?

562






What does plv msg allows you to do?

696


What is substitution variable?

591


How to load data with sql*loader?

558


what is csv? : Sql dba

586


How do you rename a table in sql?

543


How to process query result in pl/sql?

572


What operators deal with null?

617


What are the triggers associated with image items?

629


What are the two parts of design view?

592


How can I get the number of records affected by a stored procedure?

586