Dec
13

Packages in PL/SQL

By admin  //  Oracle  //  View Comments

CREATE OR REPLACE PACKAGE BODY emp_actions AS — body
PROCEDURE hire_employee ( ename VARCHAR2, job VARCHAR2, mgr NUMBER, sal NUMBER, comm NUMBER, deptno NUMBER) IS
BEGIN
INSERT INTO emp VALUES (emp_sec.NEXTVAL, ename, job, mgr, SYSDATE, sal, comm, deptno);
COMMIT;
END hire_employee;

PROCEDURE fire_employee (emp_id NUMBER) IS
BEGIN
DELETE FROM emp WHERE empno = emp_id;
COMMIT;
END fire_employee;

END emp_actions;

Related posts:

  1. Trigger in PL/SQL
  2. Procedure in PL/SQL
  3. Structure of PL/SQL Block
  4. SQL Statements
  5. SQL Functions
  • http://%/Endworld3 Alexander1

    buy@aloe.vera.gel” rel=”nofollow”>…

    Need cheap generic VIAGRA?…

blog comments powered by Disqus

Namaste!

Hello! This is Nirmal Gyanwali, a freelance web developer from Kathmandu, Nepal. I am well versed with Open source CMS and portal frameworks like Joomla!, Wordpress, Drupal. If you're interested, you can contact me at info@nirmal.com.np.
Thanks!

Latest Tweets