substring_index
function
Applies to: Databricks SQL Databricks Runtime
Returns the substring of expr
before count
occurrences of the delimiter delim
.
Arguments
expr
: ASTRING
orBINARY
expression.delim
: An expression matching the type ofexpr
specifying the delimiter.count
: AnINTEGER
expression to count the delimiters.