SQL Server IN vs. EXISTS Performance

前端 未结 9 804
醉酒成梦
醉酒成梦 2020-11-22 05:37

I\'m curious which of the following below would be more efficient?

I\'ve always been a bit cautious about using IN because I believe SQL Server turns th

9条回答
  •  囚心锁ツ
    2020-11-22 06:21

    The execution plans are typically going to be identical in these cases, but until you see how the optimizer factors in all the other aspects of indexes etc., you really will never know.

提交回复
热议问题