gpt4 book ai didi

google-bigquery - SHA-256 BigQuery 函数或 UDF

转载 作者:行者123 更新时间:2023-12-01 22:59:36 25 4
gpt4 key购买 nike

有人有 UDF 或知道在 BigQuery 中支持 SHA-256 的计划吗?

https://cloud.google.com/bigquery/query-reference#syntax_16

最好,

杰里米

最佳答案

现在,这是使用 StandardSQL 的 BigQuery 中的一项功能,下面介绍了如何以字符串形式返回数据。

#StandardSQL
SELECT
TO_HEX(SHA256("Hello")) as hashed_string;

输出:185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969

关于google-bigquery - SHA-256 BigQuery 函数或 UDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37418403/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com