表A,B,C(数据量较大)有一个共同字段
我要查询条件是要求A表某个字段满足特定值的,再找三个表的某几个字段,
其中a,b,c有相同字段field1 我想以a表field2为xxx为条件查三个表的其他数据select a.field1,a.field2,a.field3,b.field4,b.field5,c.field6,c.filed7
from a,b,c
where a.field1=b.field1 and a.field1=c.field1
and a.field2=xxx
这样无法返回结果,都是提示超出内存
或者用
select a.field1,a.field2,a.field3,b.field4,b.field5,c.field6,c.filed7
from a,b,c
where a.field1=b.field1 and a.field1=c.field1
and a.field1 in (select field1 from a where field2=xxx)
也是同样的结果
感觉像是查的结果是所有的数据了
但是实际满足field2=xxx的数据量其实并不大,求各位老师解答指正问题