[Oracle] 알아두면 좋은 쿼리
최근 수정 2020-02-27 /************************************************************************ * 오라클 SQL 날짜형변환 ************************************************************************/ SELECT REGEXP_REPLACE('20180823', '(.{4})(.{2})(.{2})', '\1-\2-\3') FROM DUAL; SELECT TO_CHAR('20180823','YYYY/MM/DD') FROM DUAL; SELECT TO_CHAR(TO_DATE('20191127', 'YYYYMMDD'), 'YYYY/MM/DD') FROM DUAL; #1-1 /*SP, 함수 ..