日期:2014-05-18  浏览次数:20476 次

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 的地方都会 全表扫描