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.