https://www.cnblogs.com/sanchang/p/11533137.html
安装
// 打开数据库
打开命令行 数据mongo 就可以运行事件
db // 当前数据库
show dbs // 显示所有数据库
use xxx // 使用某种数据库
db.dropDatabase(); // 删除数据库
db.xxx.insert(xxxx) // 插入数据库
安装 可视化工具 adminmongo
db.xxx.find() // 查询数据
db.xxx.find({"name":"123"}) // 精确查询
db.xxx.find({"name":"123","age":"12"}) // 多个条件查询
db.xxx.update({"score.xxx":"xxx"},{$set:{"xxx":xxx}}) //更改一个数据
db.xxx.remove({'xxx':'xxx'}) // 删除所有指定数据
db.xxx.remove({'xxx':'xxx'},{justOne:true}) // 删除一条数据