Aller au contenu

Renvoie la position de la première occurrence d’une sous-chaîne dans une chaîne.

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