我正在使用一个用例poc,我想根据某种条件在MongoDB中查询存在于同一集合中的多个文档?一个例子就足够了。
Looking for a query similar like SQL select query on two tables(following query) is it possible in MongoDB?
select t1.X, t1.Y_DT,t1.Z,t1.adj,t1.bjc,t1.jbc,t1.mnk,t2.adj1,t2.bjc1,t2.jbc1,t2.mnk1 from test250 t1, test350 t2 where t1.X = t2.X AND t1.Y_DT=t2.Y_DT AND t1.Z = t2.Z;
如果可能的话,任何示例查询都可以极大地帮助我。