摘要: $push:向文档数组中添加元素,如果没有该数组,则自动添加数组。db.users.insert({"name":"zhang"})db.users.update({"name":"zhang"},{"$push":{"emails":"zhang@pocketdigi.com"}})db.user 阅读全文
posted @ 2018-01-26 17:12 yonziliu 阅读(8839) 评论(0) 推荐(0) 编辑