sql语句可以优化吗select * from dbo.SCBWC20120330 swhere not exists(select * from kbinfo where s.公
sql语句可以优化吗
select * from dbo.SCBWC20120330 s
where not exists(select * from kbinfo where s.公司名=客户名称)
or not exists(select * from kbinfo where 地址=公司地址 )
or not exists(select * from kbinfo where 电话=联系电话 )
or not exists(select * from kbinfo where 传真=联系电话 )
or not exists(select * from kbinfo where s.联系人=kbinfo.联系人 )
[解决办法]
不可,可.
[解决办法]
看你个人能力了
[解决办法]
把 * 换成 具体的字段。
有 * 和 OR 的地方都会 全表扫描
