菜
菜鸟黄
Unregistered / Unconfirmed
GUEST, unregistred user!
现在有A,B两个表A:a1,b1,c1B:a1,d1,e1,f11.通过d1,e1查询表B中的a12.通过表中的a1以及a1=d1查询A表3.最后得到a1,b1.注:A,B表都有10000条记录左右,我是希望查询的效率尽量快.我的查询语句是这样写的:select distinct A.a1,A.b1 from A, B where (B.d1='912202' and B.e1='2' and (A.a1=B.a1 or A.a1='912202')) or............