* SQL(Manipulating Power) + 3GL(Processing Power)

  * Pascal -> Ada -> PL/SQL

  * Block Structured Language: Anonymous/Unnamed Block

                                        vs. 

                               Named Block/Subprogram (Procedure, Function, Package, Trigger)


declare

 선언부

begin

 실행부           ==> # 1-9: PL/SQL Block Structure

exception

 예외처리부

end;



create or replace procedure 이름 (매개변수 설정)

as

 선언부

begin

 실행부

exception

 예외처리부

end;


create or replace funcition 이름 return 데이터_타입 (매개변수 설정)

as

 선언부

begin

 실행부

 return ...;

exception

 예외처리부

end;


'Oracle > PL/SQL' 카테고리의 다른 글

15일차 # 간단한 예제  (0) 2012.04.24
15일차 # SQL vs. PL/SQL  (0) 2012.04.24
15일차 # 1-6: Benefies of PL/SQL  (0) 2012.04.24
15일차 # 1-5: PL/SQL 처리과정  (0) 2012.04.24
15일차 PL/SQL Fundamentals  (0) 2012.04.24

+ Recent posts