相关疑难解决方法(0)

App Script BigQuery Standard SQL 插入或更新语句

我希望在 Google App Script 中使用 BigQuery 标准 SQL 方言。未选中“SQLVersion : Use Legacy SQL”时,以下在 BigQuery 中有效;

INSERT INTO MyDataSet.MyFooBarTable (Id, Foo, Date) VALUES (1, 'bar', current_Date)
Run Code Online (Sandbox Code Playgroud)

我可以愉快地使用 Jobs 从 Google Script 查询 BigQuery 并通过 Append 作业执行插入(有效地给出相同的插入结果)。是否可以在脚本中使用标准 SQL 逻辑来执行插入?

我曾尝试将 #standardSQL 添加到语句中,但并不高兴。

google-apps-script google-bigquery

3
推荐指数
1
解决办法
2276
查看次数