我想要将多个值传递给一个pentaho数据集成转换,以便过滤最终的result.if。我想要写一个sql查询,所有我要做的就是: select field from table where name in ${parameter}
the probleme我想用mongodb查询做同样的事情,但是我没有找到这样做的方法。
如果任何人有一个想法,我将非常感谢help.thanks
这就是我所想的,但它仍然不起作用:{ Nom_organisation: { $in: ["${organisation}"] } }
如果任何人对mongodb的多选参数有经验,我将不胜感激。
发布于 2019-10-30 22:41:49
这就是你需要的吗?
db.collection.find({
"Nom_organisation": {
$in: [
"ONEA1",
"OTHER"
]
}
})
下面是一个可用的示例:https://mongoplayground.net/p/u1tnkZo7w5E
https://stackoverflow.com/questions/58626672
复制相似问题