LOCATE (Lakehouse v2)
Renvoie la position de la première occurrence d’une sous-chaîne dans une chaîne.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.locate(<substr>, <str>[, <pos>])Exemples Analyze
Section intitulée « Exemples Analyze »func.locate('or', 'hello world')
┌───┐│ 8 │└───┘Syntaxe SQL
Section intitulée « Syntaxe SQL »LOCATE(<substr>, <str>[, <pos>])Exemples SQL
Section intitulée « Exemples SQL »SELECT LOCATE('or', 'hello world');
┌───┐│ 8 │└───┘