LEFT
Descriptionβ
Returns the substring starting at the specified offset from the left side of string s.
Syntaxβ
LEFT ( <str> , <offset> )
Parametersβ
Parameter | Description |
---|---|
<str> | String to search for |
<offset> | Offset to calculate from the left side |
Return Valueβ
The substring starting at the specified offset from the left side of string <str>
.
Exampleβ
SELECT LEFT('Hello', 3)
+------------------+
| left('Hello', 3) |
+------------------+
| Hel |
+------------------+