
> db.books.update({"download_links" : "http://file.allitebooks.com/20160514/Moodle%20E-Learning%20Course%20Development.pdf"},{$set:{has_download:0}});
第一个:为条件
第二个:为变更的值
1 |
from bson.objectid import ObjectId |

> db.books.update({"download_links" : "http://file.allitebooks.com/20160514/Moodle%20E-Learning%20Course%20Development.pdf"},{$set:{has_download:0}});
第一个:为条件
第二个:为变更的值
1 |
from bson.objectid import ObjectId |
近期评论