1.查看集合 show collections 2.向指定集合中插入一条文档数据 db.runoob.insertOne({'test':3}) 3.向指定集合中插入多条文档数据 db.runoob.insertMany(['a':1,'b':2]) 转载于:https://blog.51cto.com/suyanzhu/2307747