RIGHT
- Last Updated: December 12, 2014
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns the rightmost count of characters of string_exp.
Syntax
|
Notes
- The string_exp can
be fixed‑length or variable‑length
CHARACTERdata types. - The count can be
INTEGER,SMALLINT, orTINYINTdata types. - If any of the arguments of the expression evaluate to
NULL, the result isNULL. - If count is negative, the result evaluates
to
NULL. - string_exp and the result can contain multi‑byte characters. count represents the number of characters.
Example
This
example illustrates the RIGHT function, selecting the
rightmost six letters from the string ‘Afghanistan':
|
Compatibility
ODBC compatible