SQL>
SQL>
SQL> SELECT dic.table_name, dic.index_name,
2 DECODE(di.uniqueness, 'UNIQUE', 'YES', 'NO')uniqueness,
3 dic.column_position, dic.column_name
4 FROM user_indexes di, user_ind_columns dic
5 WHERE dic.table_name = di.table_name
6 AND dic.index_name = di.index_name
7 and rownum < 50
8 ORDER BY dic.table_name, dic.index_name,
9 di.uniqueness desc, dic.column_position;
no rows selected
SQL>
|