Python语言学习 (六)1.2

常见操作:

db.collection.insert(),例如:db.users.insert( {'name':'lig','age':20})

db.collection.find()

db.collection.remove(),例如:db.users.remove({'name':'zhang'},{'age':20})

db.collection.update(),例如:db.users.update({'name':'zhang'},{$set:{'age':20}})

db.collection.drop()

posted @ 2016-08-26 09:22  TinaGao  阅读(117)  评论(0编辑  收藏  举报