반응형

-- 테이블 컬럼 정보 확인

SELECT TB_COL.TABLE_NAME

            ,TB_COL.COLUMN_NAME

            ,TB_COL.DATA_TYPE

            ,TB_COL.DATA_LENGTH

            ,TB_COMMENT.COMMENTS

FROM ALL_TAB_COLUMNS TB_COL

           ,ALL_COL_COMMENTS TB_COMMENT

WHERE    TB_COL.TABLE_NAME IN ('MSP_STC_KEYMAN_T', 'BT_KEYMAN', 'MSP_STC_KEYMAN_PRD_T')

AND         TB_COL.COLUMN_NAME IN ()

AND         TB_COL.TABLE_NAME      = TB_COMMENT.TABLE_NAME

AND         TB_COL.COLUMN_NAME = TB_COMMENT.COLUMN_NAME

;

반응형

WRITTEN BY
데르벨준

,