text
regexp_split_to_table
Splits text into rows instead of an array, enabling relational processing of tokens.
Formal Syntax & Structure
sql syntaxsql
regexp_split_to_table(string, pattern [, flags])Working Example
Example Snippetsql
SELECT token FROM regexp_split_to_table('red;blue', ';') WITH ORDINALITY AS t(token,n) ORDER BY n;