随笔分类 - mongodb
mongodb增删改查的基础知识。
摘要:$query = '{ "$and": [ {"$or": [{"reported": {"$exists": false}}, {"reported": 0}]}, {"$or": [{"hidden": {"$exists": false}}, {"hidden":1}]} ] ,"_id":1081 }';db->Post->find($query);该语句的查询
阅读全文
摘要:本文转自:http://blog.163.com/wm_at163/blog/static/1321734902012526103825481/ 1 > db.blog.findOne() 2 { 3 “_id” : ObjectId(“4e914ad2717ed94f8289ac08″), 4 “comments” : [ 5 { 6 "name" : "joe", 7 "email" : "joe@example.com", 8 "content" : "good blog&
阅读全文

浙公网安备 33010602011771号