/*CREATING PROCEDURE
/*DBMS:SCOTT/TIGER:ORACLE 9i*/
create or replace
PROCEDURE addNewEmp(
VEMPNO EMP.EMPNO%TYPE,
VENAME EMP.ENAME%TYPE,
VJOB EMP.JOB%TYPE,
VMGR EMP.MGR%TYPE,
VHIREDATE EMP.HIREDATE%TYPE,
VSAL EMP.SAL%TYPE,
VCOMM EMP.COMM%TYPE,
VDEPTNO EMP.DEPTNO%TYPE)
AS
BEGIN
INSERT INTO EMP(EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO)
VALUES(VEMPNO,VENAME,VJOB,VMGR,VHIREDATE,VSAL,VCOMM,VDEPTNO);
END addNewEmp;
/*EXECUTING PROCEDURE
BEGIN
addNewEmp(7999,'DIBYENDU','ANALYST',9999,'03-JAN-2008',25700,1250,30);
END;
/*DBMS:SCOTT/TIGER:ORACLE 9i*/
create or replace
PROCEDURE addNewEmp(
VEMPNO EMP.EMPNO%TYPE,
VENAME EMP.ENAME%TYPE,
VJOB EMP.JOB%TYPE,
VMGR EMP.MGR%TYPE,
VHIREDATE EMP.HIREDATE%TYPE,
VSAL EMP.SAL%TYPE,
VCOMM EMP.COMM%TYPE,
VDEPTNO EMP.DEPTNO%TYPE)
AS
BEGIN
INSERT INTO EMP(EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO)
VALUES(VEMPNO,VENAME,VJOB,VMGR,VHIREDATE,VSAL,VCOMM,VDEPTNO);
END addNewEmp;
/*EXECUTING PROCEDURE
BEGIN
addNewEmp(7999,'DIBYENDU','ANALYST',9999,'03-JAN-2008',25700,1250,30);
END;
Comments
Post a Comment