develog

SELECT 랜덤하게 본문

DB/Oracle

SELECT 랜덤하게

냐옴 2014. 1. 22. 21:04

SELECT *

FROM 

(

    SELECT 'DD' COL FROM DUAL UNION ALL

    SELECT 'BB' COL FROM DUAL UNION ALL

    SELECT 'CC' COL FROM DUAL UNION ALL

    SELECT 'AA' COL FROM DUAL

)

ORDER BY DBMS_RANDOM.VALUE

;



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

ORA-32035: unreferenced query name defined in WITH clause  (0) 2014.02.26
oracle, sql, with  (0) 2014.02.26
Tora (Client Tool)  (0) 2013.08.30
VIEW 수정시 권한 재설정 필수  (0) 2013.07.22
[Oracle] GRANT, REVOKE  (0) 2013.07.18
Comments