跳到主要内容

create_index

创建索引

声明

bool create_index(string db_name, string coll_name, string index_name, array key_list, bool is_unique)

参数

参数名描述
db_name数据库名称
coll_name集合/表格 名称
index_name索引名称
key_list字段列表
is_unique是否唯一

返回值

bool

使用方式

返回文档