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 | 31 |
Tags
- Quartz
- find
- bash
- IntelliJ
- grep
- lsof
- vscode
- Source
- GIT
- context
- import
- ssh
- Mac
- web.xml
- maVen
- 네트워크
- VirtualBox
- port
- netsh
- Eclipse
- 단축키
- profile
- resource
- xargs
- plugin
- JavaScript
- Windows 10
- Windows
- 줄바꿈 문자
- tomcat
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