2012-10-07
DBMS/오라클]오라클공통 SQL
/** 테이블명 조회 */
SELECT * FROM ALL_TAB_COMMENTS --WHERE OWNER = 'VRM' ORDER BY COMMENTS
/
SELECT * FROM ALL_INDEX_COMMENTS --WHERE OWNER = 'VRM' ORDER BY COMMENTS
/
/** 컬럼명 조회 */
SELECT * FROM ALL_COL_COMMENTS WHERE OWNER = 'VRM' AND TABLE_NAME LIKE 'CMZG%' ORDER BY TABLE_NAME, COMMENTS
/** 테이블 조회*/
SELECT * FROM TAB
/** 휴지통 조회*/
SELECT * FROM RECYCLEBIN;
/** DROP TABLE 복구 */
FLASHBACK TABLE CSMG_IBUSPB01 TO BEFORE DROP;
/** 휴지통 미입력 삭제*/
DROP TABLE CSMG_IBUSPB01 PURGE;
/** DELETE 데이터 복구(15분전)*/
INSERT INTO CSMG_IBUSAD01
SELECT *
FROM CSMG_IBUSAD01
AS OF TIMESTAMP(SYSTIMESTAMP-INTERVAL '15' MINUTE);
/** 이전테이터 조회*/
SELECT *
FROM CSMG_IBUSAD01
AS OF TIMESTAMP(SYSTIMESTAMP-INTERVAL '15' MINUTE);
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기