develog

oracle, sql, with 본문

DB/Oracle

oracle, sql, with

냐옴 2014. 2. 26. 18:43

WITH AA AS

(

    SELECT '11' COL_NM FROM DUAL UNION ALL

    SELECT '22' COL_NM FROM DUAL UNION ALL

    SELECT '33' COL_NM FROM DUAL

)

, BB AS

(

    SELECT '44' COL_NM FROM DUAL UNION ALL

    SELECT '55' COL_NM FROM DUAL

)


SELECT * FROM AA

UNION ALL

SELECT * FROM BB

;



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

Oracle Locks  (0) 2014.05.14
ORA-32035: unreferenced query name defined in WITH clause  (0) 2014.02.26
SELECT 랜덤하게  (0) 2014.01.22
Tora (Client Tool)  (0) 2013.08.30
VIEW 수정시 권한 재설정 필수  (0) 2013.07.22
Comments