> db.test.find(){ "_id" : ObjectId("5c08e86cbfd9756856063341"), "name" : "xiaobin", "age" : 27, "gender" : "male" } { "_id" : ObjectId("5c09ddb5ca83e5589d6754ef"), "name" : "xiaojun", "age" : 30, "gender" : "male" } { "_id" : ObjectId("5c09e4fcca83e5589d6754f1"), "name" : "xiaobin" }
如何删除第三条记录,如果条件是{name:'xiaobin'}的话第一条也会被删除。
慕妹3146593
相关分类