Create table using a variable name in the BigQuery UI

前端 未结 3 1900
粉色の甜心
粉色の甜心 2020-12-07 04:37

I am trying to write a BigQuery script that I can store as a procedure, I would like one of the arguments I pass to be used in the table name that is written out by the scri

3条回答
  •  执笔经年
    2020-12-07 05:13

    So far we have officially announced BigQuery scripting document, which is still in Beta phase, leveraging usage of dynamic parameters (variables) as a placeholders for values in SQL queries . However, according to Parameterized queries in BigQuery documentation, query parameters can't be used for SQL object identifiers:

    Parameters cannot be used as substitutes for identifiers, column names, table names, or other parts of the query.

提交回复
热议问题