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
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 |
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 |
What is window clause?
How will you delete a particular row from a Table?
What does where 1 1 mean in sql?
Explain what is dbms?
How do I install microsoft sql?
Can we write create command in the plsql block?if possible how?
What is record variable?
What does plv msg allows you to do?
What is a full join sql?
How many types of cursors supported in pl/sql?
what happens if you no create privilege in a database? : Sql dba
Inline the values in PL/SQL, what does it mean.?