天天看點

mongodb 的進庫操作

mongo

show dbs

use  xxx

show collections

db.xxx.find()

db.users.update({ "xxx" : ObjectId("xxxx")},{$set:{"xxx":true}})

db.products.insert( { item: "card", qty: 15 } )