文档

删除二级索引

更新时间:

当不再需要使用某个二级索引时,您可以使用DeleteIndex接口删除数据表上指定的索引表。

前提条件

注意事项

二级索引删除后不可恢复,如需再次使用请重新创建二级索引。

参数

参数

说明

mainTableName

数据表名称。

indexName

索引表名称。

示例

var client = require('./client');

client.dropIndex({
  mainTableName: "<TABLE_NAME>", //设置数据表名称。
  indexName: "<INDEX_NAME>" //设置索引表名称。
}, function (err, data) {
  if (err) {
    console.log('error:', err);
    return;
  }
  console.log('success:', JSON.stringify(data, null, 2));
});
  • 本页导读 (1)
文档反馈