mongodb 批量查询数据方法

db.getCollection("trace_scan_record").find(
{
"code" : {$in: ["TEST_80000000021",
"TEST_80000000022",
"TEST_80000000023",
"TEST_80000000024",
"TEST_80000000025",
"TEST_80000000026",
"TEST_80000000027",
"TEST_80000000028",
"TEST_80000000029",
"TEST_80000000053",
"TEST_80000000054",
"TEST_80000000055",
"TEST_80000000056",
"TEST_80000000057",
"TEST_80000000058",
"TEST_80000000059",
"TEST_80000000060",
"TEST_80000000085",
"TEST_80000000086",
"TEST_80000000087",
"TEST_80000000088",
"TEST_80000000089",
"TEST_80000000090",
"TEST_80000000091",
"TEST_80000000092"
]}
}
);

posted @ 2022-07-14 23:57  谢端阳  阅读(1026)  评论(0编辑  收藏  举报