STRLEFT (Lakehouse v2)
Renvoie les N premiers caractères d’une chaîne, en partant de la gauche. Alias de LEFT.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.strleft(<str>, <len>)Exemples Analyze
Section intitulée « Exemples Analyze »func.strleft('StarRocks', 4)
┌────────┐│ 'Star' │└────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »STRLEFT(<str>, <len>)Exemples SQL
Section intitulée « Exemples SQL »SELECT STRLEFT('StarRocks', 4);
┌──────┐│ Star │└──────┘