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 are triggers and its uses?
How can you create an empty table from an existing table?
how to enter characters as hex numbers? : Sql dba
What program will open a mdb file?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
What is a sql trace file?
Is it possible to include an insert statement on the same table to which the trigger is assigned?
Explain 3 basic parts of a trigger.
What are the types of triggers in sql?
HOW TO TUNE ORACLE SQL QUERIES GIVE ME STEP BY SREP
How you will create Toad Function?
What does the argument [or replace] do?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)