一般操作

1、var db = new mongo.Db('ten',server,{salf:true});

  创建名为“ten”的数据库

2、表----集合

  db.collection('users',function(err,collection){});

3、bin > mongo > use ten > 返回上级是啥?

4、发现db.users.remove()无效

  

5、删除集合

  db.users.drop()

  成功返回true,否则false

6、

原文地址:https://www.cnblogs.com/hhweb/p/6510372.html