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

Answers were Sorted based on User's Feedback



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

Answer / aravinda

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

Modularity, easy to design applications, information hiding,
added functionality and best performance.

we can declare global variables in packages which are valid
across application.

without invalidating the package we can modify the package body.

Is This Answer Correct ?    13 Yes 0 No

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

Answer / dhiraj

Packages are bunch of procedures and functions instead of
granting one by one procedure and function DBA can grant
packge to user.

Is This Answer Correct ?    7 Yes 5 No

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

Answer / 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

More SQL PLSQL Interview Questions

What is a record in pl/sql?

0 Answers  


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

0 Answers  


Use The Implicit cursor to Query The Department table information Where Deptno is 30.check,if no record was found then print "Record Was Not Found".Else Print Deptname And Ename.Dept table Have Dname Varchar2(20),Deptno Number,EnameVarchar2(20).Please Answer In 2 mins,with in Maximum 15 lines.

5 Answers   Wipro,


Which table is left in left join?

0 Answers  


How many types of primary keys are there?

0 Answers  






4. Select sum(A.salary) +sum(B.salary) as TOT_SAL from ( select LEVEL emp_id,level*100 salary,case when mod (level,2)=0then 2 else null end dept_id from dual connect by level<6 )A right outer join (select level emp_id ,level*200 salary ,case when mod (level,3)=0 then 2 else null end dept_id from dual connect by level<6)B On A.dept_id=B.dept_id And A.emp_id=B.emp-id;

1 Answers   Fintellix,


How does postgresql compare to "nosql"?

0 Answers  


Can %notfound return null after a fetch?

0 Answers  


What is the difference between having and a where in sql?

0 Answers  


write a query to delete similar records in different tables with same structure

4 Answers  


what is bulk bind

4 Answers   TCS,


What is prepared statement in sql?

0 Answers  


Categories