Hi friends
Explain the difference between a FUNCTION, PROCEDURE and PACKAGE.
FUNCTION, PROCEDURE and PACKAGE
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 9, 2012, 5:30 PM EST
Package::-It stores and compiles all the functions and procedures declared in SGA(System Global Area).Whenever stored procedures or functions are called from this package, it will get them from SGA.So it performance is definitely high.
Procedures::-They are subprograms which perform certain action. They cannot be called from select statement.
Functions::-They are subprograms which return a value. They can be used in select statement and also its return value can be assigned to a variable.
Please refer the below link
http://www.brilliantsheep.com/difference-between-plsql%E2%80%99s-function-procedure-and-package/
Thanks