Select columns of table index

前端 未结 3 1224
清酒与你
清酒与你 2021-01-28 12:05

Oracle has a query that selects the existing indexes of a table. For example:

SELECT * FROM user_indexes WHERE table_name = \'CM_WCEL\';

But

3条回答
  •  借酒劲吻你
    2021-01-28 12:31

    As per the creation of table, the below tables will have the requested information.

    SELECT *
    FROM user_ind_columns
    WHERE table_name = 'CM_WCEL';
    

    or

    SELECT *
    FROM dba_ind_columns
    WHERE table_name = 'CM_WCEL';
    

提交回复
热议问题