Last active
March 10, 2019 12:16
-
-
Save ezhov-da/e07c4e45694e8af9fa5f9ad0b999c631 to your computer and use it in GitHub Desktop.
oracle query objects info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
t0.OWNER | |
,t0.TABLE_NAME | |
,t1.COMMENTS as TABLE_COMMENT | |
,t2.COLUMN_NAME | |
,t3.COMMENTS as COLUMN_COMMENT | |
,t2.DATA_TYPE | |
,t2.DATA_LENGTH | |
from SYS.ALL_TABLES t0 | |
inner join SYS.ALL_TAB_COMMENTS t1 on | |
t0.TABLE_NAME = t1.TABLE_NAME | |
inner join SYS.ALL_TAB_COLUMNS t2 on | |
t0.TABLE_NAME = t2.TABLE_NAME | |
inner join SYS.ALL_COL_COMMENTS t3 on | |
t0.TABLE_NAME = t3.TABLE_NAME | |
and | |
t2.COLUMN_NAME = t3.COLUMN_NAME | |
where | |
t0.TABLE_NAME = UPPER('tbl_operation_column') | |
order by | |
t2.COLUMN_ID; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment