Reputation: 107
I am new to creating packages, I have to include a procedure and a function in a package,
My query is, after package is created, do I need to create that procedure and function again outside? i.e Create and Replace procedure ...and all?
Upvotes: 1
Views: 62
Reputation: 231661
No. You just define the procedure in the package body.
A procedure can either be a stand-alone procedure or it can be part of a package. In real systems, you almost never want to have stand-alone procedures. It virtually always makes sense to put related procedures together into packages to better organize them.
Upvotes: 2