Skip to content

Returns the leftmost N characters of a string.

func.left(<str>, <len>)
func.left('StarRocks', 4)
┌────────┐
'Star'
└────────┘
LEFT(<str>, <len>)
SELECT LEFT('StarRocks', 4);
┌──────┐
│ Star │
└──────┘