mongo
这是一个懒人
人太懒,都快废掉了。
展开
-
mongo 批量替换字符串
将字段mp4_filepath中的http://188.192.162.12:8904批量替换成http://188.192.162.12:81 db.getCollection('test').find({'mp4_filepath':{'$ne':null}, 'mp4_filepath':/^http:\/\/188.192.162.12:8904/}). forEach( f...原创 2019-08-19 17:03:05 · 2526 阅读 · 0 评论 -
mongo支持表达式条件查询
前言 通过相关表达式,如 concat, substr, toLower, toUpper 等,对mongo进行操作; 并且可以根据操作结果进行条件判断。 相关聚合表达式 10.11.2. Supported Aggregation Operations 代码编写 此处以 substr为例。 1、输入类 Input @Document(collection = "test") publi...原创 2019-08-19 17:04:03 · 360 阅读 · 0 评论