STRTOK_TO_ARRAY

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functionsSemi-structured and structured data functions

Tokenizes the given string using the given set of delimiters and returns the tokens as an ARRAY value.

Syntax

supportedpartialnot supportednot scored

STRTOK_TO_ARRAY( <string> [ , <delimiter> ] )

Parameters

NameRequiredDescription
stringrequiredText to be tokenized.
delimiteroptionalSet of delimiters. Default: A single space character.

Returns

This function returns a value of type ARRAY or NULL. The function returns an empty array if tokenization produces no tokens. If either argument is a NULL or JSON null value, the function returns NULL.

Referenced by