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"]}                
}

 

相关文章:

  • 2021-11-22
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-04-13
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
相关资源
相似解决方案