A.db.stus.dropIndex({sname:1})B.db.stus.dropIndex(’sname_1’)C.db.stus.dropIndex(’sname_Index’)D.db.stus.dropIndexes()
A.removeB.deleteManyC.deleteOneD.delete
A.操作集合前需要切換至對用數(shù)據(jù)庫B.使用create Collection方法創(chuàng)建集合C.在MongoDB中,當插入文檔時,如果集合不存在,則MongoDB會隱式地自動創(chuàng)建集合D.查看數(shù)據(jù)庫里集合的信息時使用list命令