Mongoexport引号问题踩坑
今天想按_id导出一些数据 发现find可以搜到但是mongoexport总是exported 0 records
文档关于mongoexport --query部分: You must enclose the query document in single quotes ('{ ... }') to ensure that it does not interact with your shell environment. 必须用单引号扩起来query部分
The query must be in Extended JSON v2 format (either relaxed or canonical/strict mode), including enclosing the field names and operators in quotes: query必须把列名和操作符都括起来。
实验如下,首先在
共有 0 条评论