Skip to content

Instantly share code, notes, and snippets.

@spaghettidba
Created August 10, 2018 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spaghettidba/40f834706c3c410f96ffb7368fd14dfc to your computer and use it in GitHub Desktop.
Save spaghettidba/40f834706c3c410f96ffb7368fd14dfc to your computer and use it in GitHub Desktop.
:setvar somevar "somevalue"
SELECT '$(somevar)'
GO
SELECT '$(somevar)'
GO
@spaghettidba
Copy link
Author

OUTPUT:


---------
somevalue

(1 row affected)


---------
somevalue

(1 row affected)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment