Create table using a variable name in the BigQuery UI

前端 未结 3 1901
粉色の甜心
粉色の甜心 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:24

    Maybe you can use a wildcard table. You would create a wildcard table with all subtables you want to query and use the WHERE clause to select any subtable you want. Just be careful, the tables must have the same schema.

提交回复
热议问题