SQLServer Execpt和not in 性能差异

主要讲 except 和 not in 的性能上的区别。 复制代码 代码如下: CREATE TABLE tb1(ID int) CREATE TABLE tb2(ID int) BEGIN TRAN DECLARE @i INT = 500 WHILE @i 0 begin INSERT INTO dbo.tb1 VALUES ( @i — v – int ) SET @i = @i -1 end COMMIT我测试的

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部