例如: 我现在要查询文章列表, 我之前看过的文章就不再显示了。
db.wenzhang.find({"red":{"$nin":[ 另一个表中得数据 另一个 find ]}})
类似 sql 的 Select * from TableName where a not in (select a from TableName2) as abc
怪我咯2017-04-26 09:04:09
mongo does not support this type of union search
Suggestion to improve your own design