use*_*076 1 sql sql-server-2008-r2
我有1000个值的基表.和第二个临时表有100个值.我需要通过guid对它们进行比较,并仅返回第二个表中第一个表中不存在的那些行.我需要最快的性能解决方案.谢谢!
Ric*_*iwi 10
经典的左连接/ isnull测试
select A.*
from secondTbl A
left join firstTbl B on A.guid = B.guid
WHERE B.guid is null
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
7330 次 |
最近记录: |