LOCATE (Lakehouse v2)
返回子字符串在字符串中首次出现的位置。
Analyze 语法
Section titled “Analyze 语法”func.locate(<substr>, <str>[, <pos>])Analyze 示例
Section titled “Analyze 示例”func.locate('or', 'hello world')
┌───┐│ 8 │└───┘SQL 语法
Section titled “SQL 语法”LOCATE(<substr>, <str>[, <pos>])SQL 示例
Section titled “SQL 示例”SELECT LOCATE('or', 'hello world');
┌───┐│ 8 │└───┘