單項選擇題MongoDB通過什么命令創(chuàng)建索引?()
A.db.collectionName.createIndex(keys,options)
B.db.collectionName.create(keys,options)
C.db.collectionName.index(keys,options)
D.db.collectionName.addIndex(keys,options)
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題MongoDB通過什么命令查看索引?()
A.db.collectionName.indexes()
B.db.collectionName.index()
C.db.collectionName.getIndexes()
D.db.collectionName.getIndex()
2.單項選擇題關(guān)于MongoDB,下列說法不正確的是()。
A.啟動客戶端用mongo命令
B.MongoDB是關(guān)系型數(shù)據(jù)庫
C.MongoDB支持海量數(shù)據(jù)存儲
D.MongoDB中每個文檔都有_id字段
E.MongoDB通常用于web場景