Collection Contents Previous Next PDF

ASA SQL Reference

SQL Functions

Alphabetical list of functions

RIGHT function [String]


Function 

Returns the rightmost characters of a string.

Syntax 

RIGHT ( string-expressioninteger-expression )

Parameters 

string-expression    The string to be left-truncated.

integer-expression    The number of characters at the end of the string to return.

Usage 

If the string contains multi-byte characters, and the proper collation is being used, the number of bytes returned may be greater than the specified number of characters.

Standards and compatibility 
See also 
Example 

The following statement returns the value olate.

SELECT RIGHT( 'chocolate', 5 )

Collection Contents Previous Next PDF