数据记录太多怎么?
select * from table1 where field1 (select field1 from table2 where field2='something');
table1,table2中的数据记录都很多,每个表中的记录都有上万条以上,我在PB中一执行上面的SQL语句就死掉了,请问有什么好的解决办法?
select * from table1 where field1 in(select table2.field1 from table2 where table2.field2 in (select table3.field2 from table3 where table3.field3='something'));
我最终希望能执行三个表的复合查询,但每个表的记录太多,一查询,我打开lockview看就锁了,很长时间都不好,PB一会就挂了。请问有什么好的解决方法。如能再告我原因何在,那就多谢谢了。