Multiple IDs for the same Query in MongoDB
15 次查看(过去 30 天)
显示 更早的评论
I am querying a remote MongoDB database with Matlab.
I have an array of IDs that I would like to look for and a query tipically looks like this:
query520 = sprintf('{"_ref":{$oid:"%s"}, "eventTypeId":520}', IDs{end});
Is their a way to check multiple (selected) IDs at once like this:
query520 = sprintf('{"_ref":{$oid:"%s"}, "eventTypeId":520}', IDs{1:2});
Thanks for our help and time!
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Database Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!