日期:2014-05-16 浏览次数:20530 次
mongo.exe --host -uadmin -padmin
show dbs
use dbname
show tables;
db.tablename.find()
db.tablename.find({id:101})
db.tablename.save({"id":3,"name":"jimingsong","age":25})
db.tablename.remove({id:3})
db.tablename.update({id:3},{$set:{"name":"jms","age":23}})