There would be nothing new in this section apart from the syntax of package. All the procedures and functions being implemented inside the package have been thoroughly discussed in my previous articles. So, let us have a good example of using a package interacting with a database. create or replace package SamplePkg as create or replace package body SamplePkg as procedure dispEmp as procedure dispDept as end SamplePkg; To execute each of those procedures separately, you can use the following commands: execute SamplePkg.dispEmp;
blog comments powered by Disqus |