SPLIT_TO_TABLE

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functionsTable functions

This table function splits a string (based on a specified delimiter) and flattens the results into rows.

Syntax

SPLIT_TO_TABLE(<string>, <delimiter>)

Parameters

NameRequiredDescription
stringrequiredText to be split.
delimiterrequiredText to split the string by.

Usage notes

Output

This function returns the following columns: Column name | Data type | Description SEQ | NUMBER | A unique sequence number associated with the input record. The sequence is not guaranteed to be gap-free or ordered. in any particular way. INDEX | NUMBER | The one-based index of the element. VALUE | VARCHAR | The value of the element of the flattened array. Note The query can also access the columns of the original (correlated) table that served as the source of data for this function. If a single row from the original table resulted in multiple rows in the flattened view, the values in this input row are replicated to match the number of rows produced by this function.

See also