跳转到内容

返回子字符串在字符串中首次出现的位置。

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