DS's『 행복합시다 』

tab 3

[oracle] 필드명으로 테이블 조회(user table)

해당 필드명이 들어간 테이블 조회 SELECT USER_TAB_COLUMNS.TABLE_NAME as TNAME, USER_TAB_COMMENTS.COMMENTS as TCMT, USER_TAB_COLUMNS.COLUMN_NAME as COL_NM, USER_COL_COMMENTS.COMMENTS as COL_CMT, USER_TAB_COLUMNS.DATA_TYPE as TYPE_CD, DECODE(USER_TAB_COLUMNS.DATA_TYPE, 'NUMBER',USER_TAB_COLUMNS.DATA_PRECISION ||'.'||USER_TAB_COLUMNS.DATA_SCALE, USER_TAB_COLUMNS.DATA_LENGTH) as LENGTH, USER_TAB_COLUMNS.NULLABLE a..

필드명 테이블 명으로 테이블 조회

해당 필드명이 들어간 테이블 조회 SELECT USER_TAB_COLUMNS.TABLE_NAME as TNAME, USER_TAB_COMMENTS.COMMENTS as TCMT, USER_TAB_COLUMNS.COLUMN_NAME as COL_NM, USER_COL_COMMENTS.COMMENTS as COL_CMT, USER_TAB_COLUMNS.DATA_TYPE as TYPE_CD, DECODE(USER_TAB_COLUMNS.DATA_TYPE,'NUMBER',USER_TAB_COLUMNS.DATA_PRECISION ||'.'||USER_TAB_COLUMNS.DATA_SCALE, USER_TAB_COLUMNS.DATA_LENGTH) as LENGTH, USER_TAB_COLUMNS.NULLABLE as..

728x90