Last active
December 20, 2015 20:58
-
-
Save ifsantos/6193765 to your computer and use it in GitHub Desktop.
1: Query used to discover the table indexes.
2: Query used to show table metadata.
This file contains hidden or 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
-- 1: Query used to discover the table indexes. | |
select | |
table_name, | |
index_name, | |
column_name | |
from | |
dba_ind_columns | |
where table_name = &table | |
order by | |
table_name, | |
column_position; | |
-- | |
-- 2: Query used to show table metadata. | |
select * | |
from | |
all_all_tables | |
where | |
table_name = &table; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment