Skip to content

Returns the position of the first occurrence of a substring in a string.

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