SELECT GROUP_NAME, REPLACE(REPLACE(WMSYS.WM_CONCAT(DISTINCT MARKETING_DATE_01),',',' '),'(Meeting)','') AS DATE_01, REPLACE(REPLACE(WMSYS.WM_CONCAT(DISTINCT MARKETING_DATE_02),',',' '),'(Meeting)','') AS DATE_02, REPLACE(REPLACE(WMSYS.WM_CONCAT(DISTINCT MARKETING_DATE_03),',',' '),'(Meeting)','') AS DATE_03, REPLACE(REPLACE(WMSYS.WM_CONCAT(DISTINCT MARKETING_DATE_04),',',' '),'(Meeting)','') AS ..
-- 2건이상 데이터 SELECT MAX(ID) AS ID, MAX(TIMS_DATE) AS TIMS_DATE, MAX(FUND_CODE) AS FUND_CODE, COUNT(*) AS CNT FROM IFT_FUND_STANDARD_MODIFY WHERE FUND_CODE ='01032' GROUP BY TIMS_DATE||FUND_CODE HAVING COUNT(*) > 1 -- 2건이상 데이터중 과거 데이터 삭제 DELETE -- SELECT꼭 해보고 날려버린다 FROM IFT_FUND_STANDARD_MODIFY WHERE TIMS_DATE||FUND_CODE IN ( SELECT TIMS_DATE||FUND_CODE FROM IFT_FUND_STANDARD_MODIFY WHERE FUND_COD..
-- 일반 컬럼수정 ALTER TABLE EM_MMT_TRAN MODIFY RECIPIENT_NUM VARCHAR2(16 BYTE) ------------------------------------------------------------------------------------- -- 일반 컬럼수정(NOT NULL) -- ORA-01442: column to be modified to NOT NULL is already NOT NULL ALTER TABLE EM_MMT_TRAN MODIFY CALLBACK VARCHAR2(16 BYTE) NOT NULL -- DISABLE ALTER TABLE EM_MMT_TRAN DISABLE CONSTRAINT SYS_C0037363 CASCADE --> 일반 ..
CLOB 데이터가 원하는데로 안나와서 일단 미련하게 추출; SELECT BOARD_SEQ, SEQ, TITLE, DBMS_LOB.SUBSTR(CNTNT, 2000, 1) AS CONTENTS1, DBMS_LOB.SUBSTR(CNTNT, 2000, 2001) AS CONTENTS2, DBMS_LOB.SUBSTR(CNTNT, 2000, 4001) AS CONTENTS3, DBMS_LOB.SUBSTR(CNTNT, 2000, 6001) AS CONTENTS4, DBMS_LOB.SUBSTR(CNTNT, 2000, 8001) AS CONTENTS5, DBMS_LOB.SUBSTR(CNTNT, 2000, 10001) AS CONTENTS6, DBMS_LOB.SUBSTR(CNTNT, 2000, 12001) AS CONT..
indexOf 와 같은 예약어 INSTR( 컬럼명 , '찾을문자') lastindexOf 와 같은 예약어 INSTR( 컬럼명 , '찾을문자' , -1) => -1을 붙여주면 뒤에서 부터 문자를 찾는다. SELECT DISTINCT TARGET_DATE, FROM_NAME, USER_ID, SUBJECT, CONTENT, SUBSTR (CONTENT, INSTR (CONTENT, '전체순자산 총액') -1) FROM SMSQUEUE_HOMEPAGE AND TARGET_DATE >= '2015/01/01' AND CONTENT like '%전체순자산 총액%' ORDER BY TARGET_DATE ASC
- Total
- Today
- Yesterday
- Toad
- select
- tomcat
- 오라클
- 설정
- MySQL
- mssql
- Windows
- IP
- 서버
- Oracle
- DB
- server
- user
- 백업
- 자동차
- apache
- delete
- Shell
- DATABASE
- Linux
- java
- sql
- 리눅스
- eclipse
- 테이블
- table
- 윈도우
- 파일
- 데이터
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |