SUBSTRING (Lakehouse v2)
Returns a substring starting from a specified position. Alias for SUBSTR.
Analyze Syntax
Section titled “Analyze Syntax”func.substring(<str>, <pos>[, <len>])Analyze Examples
Section titled “Analyze Examples”func.substring('StarRocks', 1, 4)
┌────────┐│ 'Star' │└────────┘SQL Syntax
Section titled “SQL Syntax”SUBSTRING(<str>, <pos>[, <len>])SQL Examples
Section titled “SQL Examples”SELECT SUBSTRING('StarRocks', 1, 4);
┌──────┐│ Star │└──────┘