在rockMongo工具中,模糊查询方法

1.登录rockMongo.
2.选中要查询的表。
3.查询parentCode字段以AS开头的所有记录。
(前匹配)
{
    "parentCode":/^AS/
}

4.查询parentCode字段中包含30或者以30结尾的所有记录。
(中、后匹配)
{
    "parentCode":/.30.*/
}

5.查询parentCode字段中包含C字符的所有记录。
(全匹配)
{
    "parentCode":/C.*/
}

6. 查询rootClass字段的值为CG,UP,AS的所有记录

(In 查询)

{
    "rootClass":{$in:["CG","UP","AS"]}                
}

原文地址:https://www.cnblogs.com/wenchunl/p/6812105.html