SELECT a.TABLE_NAME, c.COMMENTS, a.COLUMN_NAME, b.COMMENTS, a.DATA_TYPE, a.DATA_LENGTH, a.NULLABLE
FROM USER_TAB_COLUMNS a, USER_COL_COMMENTS b, USER_TAB_COMMENTS c, USER_TABLES d
where 1=1
and a.TABLE_NAME = D.TABLE_NAME
and a.TABLE_NAME=b.TABLE_NAME
and b.TABLE_NAME=c.TABLE_NAME
and a.COLUMN_NAME=b.COLUMN_NAME
and a.TABLE_NAME =upper(:TABLENAME)
order by a.TABLE_NAME, a.COLUMN_ID;
반응형
'Dev > Database' 카테고리의 다른 글
[Oracle] ORA-65096: invalid common user or role name (0) | 2021.11.04 |
---|---|
vo생성쿼리 (0) | 2021.11.04 |
[Oracle]맥에서 터미널로 sqlplus 접속 (0) | 2021.11.04 |
암호화 권한 테스트 (0) | 2021.11.04 |
댓글