开发者

MongoDB equivalent of WHERE IN(1,2,...)

开发者_StackOverflow中文版

I have a list of userIDs and I want to pull out every document (naturally ordered) from a collection that are associated with one of these user IDs. Is there a MongoDB equivalent of the SQL WHERE IN?


Yes, use Mongo's $in operator.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜