Skip to content

Instantly share code, notes, and snippets.

@FembotDBA
Created July 17, 2014 19:29
Show Gist options
  • Save FembotDBA/0142f3a62b841b0adf53 to your computer and use it in GitHub Desktop.
Save FembotDBA/0142f3a62b841b0adf53 to your computer and use it in GitHub Desktop.
Declaring multiple variables on the same line.
--statement 1
DECLARE @a int, @b bit, @c varchar(50);
SET @a = 1989834;
SET @b = 0;
SET @c = 'Testing';
SELECT @a, @b, @c;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment