Skip to content

Instantly share code, notes, and snippets.

@wytten
Created October 21, 2013 14:41
Show Gist options
  • Select an option

  • Save wytten/7085017 to your computer and use it in GitHub Desktop.

Select an option

Save wytten/7085017 to your computer and use it in GitHub Desktop.
Oracle SQL to report on existing table indices
select
b.uniqueness, a.index_name, a.table_name, a.column_name
from
all_ind_columns a, all_indexes b
where
a.index_name=b.index_name and
a.table_name = upper('&table_name')
order by
a.table_name, a.index_name, a.column_position;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment