[오라클] 테이블 Layout 출력 SQL
SELECT A1.TABLE_COMMENTS TABLE_COMMENTS , A1.TABLE_NAME TABLE_NAME , A1.COLUMN_COMMENTS COLUMN_COMMENTS , A1.COLUMN_NAME COLUMN_NAME , (CASE WHEN B1.CONSTRAINT_TYPE = 'P' THEN 'Y' END) PK_FLAG , (CASE WHEN B1.CONSTRAINT_TYPE = 'R' THEN 'Y' END) FK_FLAG , A1.NULL_FLAG , A1.DATA_TYPE , A1.DATA_LENGTH FROM (SELECT B.COMMENTS TABLE_COMMENTS , A.TABLE_NAME TABLE_NAME , C.COMMENTS COLUMN_COMMENTS , A...
2023. 3. 6.