各位,我这段代码查询效率太低,请帮助给小弟看一看:select *
from tblWKListData
where 工单号 in (select 工单号
from tempLckTable
where 工单号 not in (select 工单号
from tblproccarddata))
from tblWKListData
where 工单号 in (select 工单号
from tempLckTable
where 工单号 not in (select 工单号
from tblproccarddata))
谢谢
还有,能不能利用临时表,把里面那两句的查询结果放入临时表,然后再查临时表?
你这样层层嵌套,肯定会影响效率的。