SQL Server Code,Tips and Tricks, Performance Tuning
A blog about SQL Server, Books, Movies and life in general
Thursday, May 08, 2008
SQL Teaser: @@ROWCOUNT
Without running this what do you think will be printed?
SET
ROWCOUNT 0
DECLARE
@
int
SET
@
=
6
IF
@@ROWCOUNT
=
1
PRINT
'yes'
ELSE
PRINT
'no'
PRINT
@@rowcount
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment