摘要: 假如查找comment字段字符串长度大于10的数据,mongodb命令行写法如下: $where写法: find({"comment":{"$exists":true},"$where":"this.comment.length>10"}) 正则表达式写法: find({"comment":{"$r 阅读全文
posted @ 2020-01-03 11:59 lfm601508022 阅读(4077) 评论(0) 推荐(0) 编辑