ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • ORACLE PROCEDURE
    DBMS/Oracle 2013. 12. 9. 16:07

    SQL>sqlplus scott/tiger@orcl

    SQL>EDIT salary

     

    CREATE or REPLACE PROCEDURE salary (id_new IN NUMBER, sal IN NUMBER)

    IS

    BEGIN

        UPDATE emp

        SET salary = sal

        WHERE id = id_new;

        COMMIT;

    END salary;

    /

     

    SQL>@salary

     

    SQL>EXEC salary(120, 100000); 

     

    SQL>SHOW ERRORS --> error발생시

     

     

    'DBMS > Oracle' 카테고리의 다른 글

    oracle 설치  (0) 2013.12.09

    댓글

Designed by Tistory.