Zum Inhalt springen

Gibt die Position des ersten Vorkommens einer Teilzeichenfolge zurück. Alias für LOCATE.

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