如何在bigquery查询上设置命名参数 [英] how to set named parameter on bigquery query

查看:26
本文介绍了如何在bigquery查询上设置命名参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 bigquery 查询中使用命名参数.

I am trying to use named parameters in my query on bigquery.

@val '123';
SELECT *
FROM [project_id:my_dataset.my_table] 
where name=@val

我明白了

在第 1 行第 2 列遇到"<MAX_TOKEN_VAL> "R "".期待:<EOF>

有没有办法在biquery上设置命名参数?

is there any way to set named parameters on biquery?

推荐答案

BigQuery 仅通过使用 标准 SQL,而不是 Web UI.您可以在关于运行参数化查询的部分中了解它们.如果您对查询参数的 Web UI 支持感兴趣,您可以在问题跟踪器上为功能请求加星标.

Named parameters are supported in BigQuery only through the API using standard SQL, not the web UI. You can read about them in the section on Running parameterized queries. If you are interested in web UI support for query parameters, you can star the feature request on the issue tracker.

这篇关于如何在bigquery查询上设置命名参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆