Advertisement
Fhernd

UsoNULL.sql

Nov 27th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.15 KB | None | 0 0
  1. DECLARE @valor INT = NULL;
  2.  
  3. SELECT CASE WHEN @valor = NULL THEN 1
  4.     WHEN @valor <> NULL THEN 2
  5.     WHEN @valor IS NULL THEN 3
  6.     ELSE 4
  7. END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement