REGEXP_SUBSTR함수로.SPLIT하기
[Oracle]REGEXP_SUBSTR함수로.SPLIT하기 .. WITH X AS ( SELECT 'NAVER' AS USER_ID ,'NA1,NA2,NA3,NA4,NA5,NA6,' AS RE_CODE FROM DUAL UNION ALL SELECT 'NAVER1' AS USER_ID ,'NA7,NA8,NA9,NA10' AS RE_CODE FROM DUAL ) SELECT REGEXP_SUBSTR(A.RE_CODE, '[^,]+', 1, B.LV) AS RE_CODE FROM X A ,(SELECT LEVEL LV FROM DUAL CONNECT BY LEVEL
더보기
오라클 총정리 - DBA 문법
SQL문 SELECT DML(데이터 조작어) INSERT, UPDATE, DELETE DDL(데이터 정의어) IMPLICIT COMMIT CREATE, ALTER, DROP, RENAME, TRUNCATE TCL(트랜잭션 제어) COMMIT, ROLLBACK, SAVEPOINT DCL(데이터 제어어)IMPLICIT COMMIT GRANT, REVOKE [1] Writing Basic SQL Statements 1. SELECT 기본 문장(선택, 프로잭션, 조인) SELECT [DISTINCT] { *, column [alias], ... } FROM table ; 2. SELECT 예제 SELECT * FROM dept ; SELECT deptno, loc FROM dept ; SELECT ename, ..
더보기