Skip to content

Instantly share code, notes, and snippets.

@paslandau
Last active May 29, 2020 19:00
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 paslandau/0cb51ba9e532a71fff5108f156afd2f5 to your computer and use it in GitHub Desktop.
Save paslandau/0cb51ba9e532a71fff5108f156afd2f5 to your computer and use it in GitHub Desktop.
Declare and use variables in BigQuery
-- Declare and use variables in BigQuery; 2020-05-29
-- @see http://www.pascallandau.com/bigquery-snippets/use-variables/
DECLARE foo_var STRING DEFAULT "foo";
SELECT foo_var
@paslandau
Copy link
Author

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