유명한건지도 몰랐고 쓸줄 모르던 문법....
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--이름부 | |
--IS(AS) | |
-- 선언부 DECLARE로 시작하고, 사용 할 변수/상수/커서 정의 | |
--BEGIN | |
-- 실행부 | |
--EXCEPTION | |
-- 예외처리 | |
--END; | |
DECLARE | |
vi_num NUMBER; | |
BEGIN | |
vi_num := 100; | |
DBMS_OUTPUT.PUT_LINE(vi_num); | |
END; | |
반응형
'DB > Oracle' 카테고리의 다른 글
다중 Insert 쿼리 문 예 (0) | 2015.10.07 |
---|---|
window절을 이용한 쿼리 연습 (0) | 2015.10.07 |
oracle 분석 함수 이용 예 (0) | 2015.10.07 |
WITH절 이용한 쿼리 및 순환쿼리 (0) | 2015.10.07 |
계층형 쿼리 관련 (0) | 2015.10.07 |