11.4 集合索引管理函数

Collection.createIndex() 函数

此函数的 EBNF 语法如下所示

CollectionCreateIndex
    ::= '.createIndex(' StringLiteral ',' DocumentOrJSON ')'

图 11.13 CollectionCreateIndexFunction

Image shows the syntax in EBNF form as described in the preceding text.

CollectionDropIndex

此函数的 EBNF 语法如下所示

CollectionDropIndex
    ::= '.dropIndex(' StringLiteral ')'

图 11.14 CollectionDropIndex

Image shows the syntax in EBNF form as described in the preceding text.