Skip to content

Instantly share code, notes, and snippets.

@ifsantos
Last active December 20, 2015 20:58
Show Gist options
  • Save ifsantos/6193765 to your computer and use it in GitHub Desktop.
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.
-- 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