STRPOS (Lakehouse v2)
返回子字符串首次出现的位置。是 LOCATE 的别名。
Analyze 语法
Section titled “Analyze 语法”func.strpos(<str>, <substr>)Analyze 示例
Section titled “Analyze 示例”func.strpos('hello world', 'world')
┌───┐│ 7 │└───┘SQL 语法
Section titled “SQL 语法”STRPOS(<str>, <substr>)SQL 示例
Section titled “SQL 示例”SELECT STRPOS('hello world', 'world');
┌───┐│ 7 │└───┘