Mongodb集合的操作 风雪之隅 2020-02-04 166 阅读1分钟 集合分隐式创建和显式创建两种模式一.显示创建语法:db.createCollection('dbName')可先如下操作db.createCollection("my") show collections此时若出现my则说明集合创建成功删除集合db.my.drop() show collections显示true则删除成功