콘텐츠로 이동

부분 문자열이 처음 나타나는 위치를 반환합니다. LOCATE의 별칭입니다.

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