企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
## Mongodb 查询指定时间范围的数据 mongodb里比较运算符,用 "$gt" 、"$gte"、 "$lt"、 "$lte"、"$ne"(分别对应">"、 ">=" 、"<" 、"<="、"!=") - 查询一天的数据 >db.getCollection('ec').find({"出票时间" : {'$gte' : '2018-11-01 00:00:00', '$lt' : '2018-11-01 23:59:00'}}).count() >db.getCollection('ec').find({"出票时间" : {'$gte' : '2018-12-08 00:00', '$lt' : '2018-12-09 00:00'}}).count()