Sybase Adaptive Server Anywhere Reference page 380

Table of Contents

Advertisement

Alphabetical list of functions
Standards and
compatibility
See also
RIGHT function [String]
Function
Syntax
Parameters
Examples
Usage
Standards and
compatibility
See also
ROUND function [Numeric]
Function
Syntax
Parameters
Examples
362
Vendor extension.
SQL/92
Sybase
Compatible with Adaptive Server Enterprise.
"REPEAT function" on page 360
Returns the rightmost characters of a string.
RIGHT ( string-expression , integer-expression )
string-expression
The string to be left-truncated.
integer expression
The number of characters at the end of the string to
return.
The following statement returns the value olate.
SELECT RIGHT( 'chocolate', 5 )
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.
Vendor extension.
SQL/92
Sybase
Compatible with Adaptive Server Enterprise.
"LEFT function" on page 343
"International Languages and Character Sets" on page 287 of the book ASA
User's Guide
Rounds the numeric-expression to the specified integer-expression amount of
places after the decimal point.
ROUND ( numeric-expression , integer-expression )
numeric-expression
rounded..
integer-expression
A positive integer specifies the number of significant
digits to the right of the decimal point at which to round. A negative
expression specifies the number of significant digits to the left of the decimal
point at which to round.
The following statement returns the value 123.200.
The number, passed into the function, to be

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?

Questions and answers

Table of Contents