摘要: 解决方法: db.collection.find().sort([("name", 1), ("age" , 1)]) 原因:在python中只能使用列表进行排序,不能使用字典 阅读全文
posted @ 2020-05-02 10:58 spidernyp 阅读(1528) 评论(0) 推荐(2) 编辑
摘要: db.getCollection('syxw').find({'click':{$type:2}}).forEach(function(x){x.click=NumberInt(x.click);db.getCollection('syxw').save(x);}) use sxmu 再执行,将sy 阅读全文
posted @ 2020-05-02 10:40 spidernyp 阅读(1244) 评论(0) 推荐(0) 编辑