Created
August 7, 2018 19:40
-
-
Save mvillegascuellar/21f06c73a13f2692f004d4e779991b5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @v int = 0 | |
SET @v = (SELECT database_id FROM sys.databases WHERE 1=2) | |
SELECT @v -- NULL | |
GO | |
DECLARE @v int = 0 | |
SELECT @v = database_id FROM sys.databases WHERE 1=2 | |
SELECT @v -- 0 | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment