在Bigquery中查找子字符串 [英] Finding Substring in Bigquery
本文介绍了在Bigquery中查找子字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Bigquery中查找子字符串?我找不到任何支持触发查询的功能,例如'Substring(Column_Name,3,7)'. 有什么办法可以在Bigquery中实现相同的功能?
How to find substrings in Bigquery? I couldn't find any function which supports firing queries like 'Substring(Column_Name,3,7)'. Is there any way out to achieve the same functionality in Bigquery?
推荐答案
#standardSQL
WITH yourTable AS (
SELECT 'Finding Substring in Bigquery' AS Column_Name
)
SELECT SUBSTR(Column_Name, 9, 12)
FROM yourTable
SUBSTR(value, position [, length])
供您使用
请参见 String Functions
更多
这篇关于在Bigquery中查找子字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文