4-1-Computer Class Built-in Variables-appType
2026/10/9 5:06:40
我需要从下面字符串中,取出utm_source的值:https://www.example.com/page?utm_content=buffercf3b2&utm_medium=social&utm_source=snapchat.com&utm_campaign=buffer
使用regexp_extract的正则表达式,取数据即可,如下:
SELECTregexp_extract('https://www.example.com/page?utm_content=buffercf3b2&utm_medium=social&utm_source=snapchat.com&utm_campaign=buffer','utm_source=([^&]+)',1);关键就是了解regexp_extract函数的使用。