select * from A where A.x not in(select B.x from B where B.z<>A.z and B.y=35161)
由于A、B表都很大,因此使用in和子查询要很长时间才能出结果,请问能不能改写这sql语句,采用联合查询来查呢?谢谢!