LEFT
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Returns the leftmost count of characters of string_exp.
Syntax
|
Notes
-
string_exp can
be fixed‑length or variable‑length
CHARACTERdata types. -
count can be
INTEGER,SMALLINT, orTINYINTdata types. - If any of the arguments of the expression evaluate to
NULL, the result isNULL. - If the count is negative, the result evaluates
to
NULL. - The string_exp and the result can contain multi‑byte characters. The function returns the number of characters.
Example
The
following example shows how to use the LEFT function:
|
Compatibility
ODBC compatible