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 keys and its types?
How many tables can you join in sql?
What is forward declaration in pl sql?
can we use out parameter in a function?Give an example.
how to remove records from table? no name 1 a 2 b 1 a 2 b 3 c
what is denormalization. : Sql dba
What is raid? How does it help storage of databases?
What is output spooling in sql*plus?
Which one of the following pairs of aggregate functions do you use with character fields? 1. COUNT(field) and MAX(field) 2. AVG(field) and COUNT(field) 3. MIN(field) and SUM(field) 4. AVG(field) and MAX(field) 5. COUNT(field) and SUM(field)
Can we connect to postgresql using sql developer?
Name the tables where characteristics of Package, procedure and functions are stored ?
what is inline command?