【发布时间】:2020-09-18 15:03:47
【问题描述】:
(select A from 'TableB' where C = c and G = g)
intersect
(select A from 'TableB' where C = d and G = h)
首先,由于Mysql没有提供相交运算符,所以我把上面写的查询语句改成如下。
select A
from 'TableB'
where C = c and G = g and A in(
select A
from 'TableB'
where C = d and G = h)
我想使用 MongoDB 来获得与上述相同的结果。
还有其他方法吗??
【问题讨论】:
标签: sql database mongodb nosql