LEFT
Purpose
This function returns the left-aligned substring of string with length length.
Syntax
left::=
Usage Notes
- If either
lengthorstringisNULL, thenNULLis returned. - Also if
lengthis greater than the length ofstring, the originalstringis returned. Iflengthis negative or0, thenNULLis returned. - Additionally, refer to functions SUBSTR[ING], MID and RIGHT for more information.
Example
SELECT LEFT('abcdef',3) LEFT_SUBSTR;