Skip to main content

Command Palette

Search for a command to run...

Splitting a STRING in BigQuery

Updated
1 min read
Splitting a STRING in BigQuery
C

Senior Data Engineer • Contractor / Freelancer • GCP & AWS Certified

Splitting a string in BigQuery works pretty much the same as in Excel.

SPLIT works in a similar way as its Excel cousin TEXTSPLIT - taking a string to be split and a delimiter (can be multiple characters), and returns an array of elements.

You can access them using the 0-based index or check out my previous post on more options for accessing array elements in BigQuery.

Found it useful? Check out to my Analytics newsletter at notjustsql.com.

Practical SQL

Part 1 of 50

Short, practical posts on SQL and BigQuery — from core language features to advanced query patterns. A reference for data practitioners at every level.

More from this blog

D

Datawise: A blog on SQL, BigQuery, Analytics, Python Tips and Tricks

204 posts

Data Engineer with a passion for transforming complex data landscapes into insightful stories. Here on my blog, I share insights, challenges, and the ever-evolving dance of technology and business.