CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clauseUpdated Dec 20, 2024
instr
function Applies to: Databricks SQL Databricks Runtime
Returns the (1-based) index of the first occurrence of substr
in str
.
> SELECT instr('SparkSQL', 'SQL');
6
> SELECT instr('SparkSQL', 'R');
0
> SELECT instr('SparkSQL' COLLATE UTF8_LCASE, 'sql');
6
> SELECT instr('SparkSQL' COLLATE UTF8_BINARY, 'sql');
6