목록schema (1)
잡동사니
[Oracle] 테이블 정보조회
오라클 버전 : 11g /* DB스키마 정보 조회 SQL */ SELECT A.TABLE_NAME , A.TABLE_COMMENTS, A.COLUMN_NAME , A.COLUMN_COMMENTS, A.DATA_TYPE , A.DATA_LENGTH, MAX(A.PK_FLAG) AS PK_FLAG, MAX(A.FK_FLAG) AS FK_FLAG, A.NOT_NULL_FLAG, A.CHAR_USED FROM( SELECT A1.TABLE_NAME TABLE_NAME , replace(A1.TABLE_COMMENTS, chr(10), ' ') TABLE_COMMENTS , A1.COLUMN_NAME COLUMN_NAME , replace(A1.COLUMN_COMMENTS, chr(10), ' ') COLUMN_..
IT/Database
2018. 3. 19. 11:54