摘要:取 time 字段的最大值: db.getCollection('CallLog').find().sort({"time":-1}).limit(1) 最小值只需要把 –1 改成 1 db.getCollection('CallLog').find().sort({"time":1}).limit(1) appCode 字段不等于 "100001" 的记录 db.getColle...
阅读全文
posted @ 2015-09-29 14:33