Setting Big Query variables like mysql

前端 未结 5 574
鱼传尺愫
鱼传尺愫 2020-12-28 15:04

what is the bigquery equivalent to mysql variables like?

SET @fromdate = \'2014-01-01 00:00:00\',  -- dates for after 2013
@todate=\'2015-01-01 00:00:00\',

         


        
5条回答
  •  误落风尘
    2020-12-28 15:09

    You may want to consider looking into BigQuery's Parameterized Queries. BigQuery supports query parameters to help prevent SQL injection when queries are constructed using user input. This feature is only available with standard SQL syntax.

    https://cloud.google.com/bigquery/docs/parameterized-queries

提交回复
热议问题