Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- ssh
- 공통표준용어
- JavaScript
- netsh
- copy-dependencies
- Windows
- profile
- bash
- find
- Mac
- context
- web.xml
- import
- grep
- xargs
- DB 도메인
- IntelliJ
- Quartz
- Eclipse
- VirtualBox
- tomcat
- Windows 10
- GIT
- port
- maVen
- resource
- 단축키
- lsof
- 네트워크
- Source
Archives
- Today
- Total
develog
[Oracle] Function return table 본문
1. 생성
-- 1. OBJECT 타입 생성 CREATE OR REPLACE |
-- 2. TABLE 타입 생성 CREATE OR REPLACE |
-- 3. 함수 생성 (테이블 리턴) CREATE OR REPLACE |
2. 실행
DECLARE BEGIN FOR I IN ( SELECT * FROM TABLE(TFN_LIST('AA')) ) LOOP DBMS_OUTPUT.PUT_LINE(I.COL1 || ', ' || I.COL2); END LOOP; END; |
'DB > Oracle' 카테고리의 다른 글
[Oracle] total_sec 을 hh:mm:ss 로 변환 (0) | 2017.04.04 |
---|---|
[Oracle] timestamp to date (0) | 2017.04.03 |
[Oracle] 참조 찾기 (0) | 2017.03.27 |
[Oracle] TIMESTAMP, INTERVAL (0) | 2016.12.01 |
[Oracle] package member 조회 (0) | 2016.11.03 |
Comments