substring_index
function
Applies to: Databricks SQL Databricks Runtime
Returns the substring of expr
before the count
occurrence 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.