在bigQuery中将表名称(动态)作为列引用

Fre*_*iat 1 google-bigquery

我认为答案使用的是Union,但由于要动态查询表名称,因此我很难受。目前我有:

SELECT
  id,
  created_on,
  operation,
  property_type,
  place_with_parent_names,
  floor,
  rooms,
  expenses,
  price_aprox_local_currency,
  description,
  title
FROM
  `properati-data-public.properties_mx.properties_sell_20*`
WHERE
  _TABLE_SUFFIX BETWEEN '1501'
  AND '1810'
Run Code Online (Sandbox Code Playgroud)

我试图在选择部分中添加tableName或类似的内容,但是我做对了。

Mik*_*ant 5

将以下内容添加到SELECT语句

CONCAT('properties_sell_20', _TABLE_SUFFIX) table_name
Run Code Online (Sandbox Code Playgroud)