@@RowCount return 1 even the previous select condition was False

后端 未结 0 1652
名媛妹妹
名媛妹妹 2020-11-29 06:55

I have this simple code

declare @a int, @b int 
select @a=sum(1), @b=1 from syscolumns where 1 = 2
select @@rowcount, @a, @b

The result is :

相关标签:
回答
  • 消灭零回复
提交回复
热议问题