How can we check that table have index or not?

前端 未结 3 1655
春和景丽
春和景丽 2021-02-07 10:16

How can we check that table have index or not ? if have how to find that index for a particular column for a table?

Regards, kumar

3条回答
  •  [愿得一人]
    2021-02-07 10:44

    ordering by column name is wrong, you need to order by the position in the index, so order by clause should be tabname, indname and sys.index_columns.index_column_id...

提交回复
热议问题