跳转到内容

返回子字符串首次出现的位置。是 LOCATE 的别名。

func.strpos(<str>, <substr>)
func.strpos('hello world', 'world')
┌───┐
│ 7 │
└───┘
STRPOS(<str>, <substr>)
SELECT STRPOS('hello world', 'world');
┌───┐
│ 7 │
└───┘