通过show index语句查询表的索引描述信息。

说明 关于show index语句的更多信息,请参见查询索引描述信息

前提条件

参数

参数 说明
query SQL语句,请根据所需功能进行设置。

示例

使用show index in test_table语句查询test_table表的索引描述信息。

const params = {
  query: "show index in test_table",
}

client.sqlQuery(params, function (err, data) {
  if (err) {
    console.log('sqlQuery error:', err.toString());
  } else {
    console.log('sqlQuery success:', data);
  }
});