Last active
September 21, 2017 09:11
-
-
Save fljdin/889c36bff95ff809596677b4cc8c2761 to your computer and use it in GitHub Desktop.
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
set line 200 | |
col columns for a100 | |
select i.table_name, i.index_name, listagg(i.column_name, ',') within group (order by i.column_position) columns | |
from dba_ind_columns i | |
left join dba_constraints c on i.index_name = c.index_name | |
where i.index_owner = '&owner' and i.table_name = '&table' | |
group by i.table_name, i.index_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment