Skip to content

Instantly share code, notes, and snippets.

@FembotDBA
Created July 17, 2014 19:31
Show Gist options
  • Save FembotDBA/599f757961d662011941 to your computer and use it in GitHub Desktop.
Save FembotDBA/599f757961d662011941 to your computer and use it in GitHub Desktop.
Declaring variables one line at a time.
--statement 2
DECLARE @a2 int;
DECLARE @b2 bit;
DECLARE @c2 varchar(50);
SET @a2 = 1989834;
SET @b2 = 0;
SET @c2 = 'Testing';
SELECT @a2, @b2, @c2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment