ASA SQL Reference
SQL Functions
Alphabetical list of functions
Returns a number of characters from the beginning of a string.
LEFT ( string-expression, integer-expression )
string-expression The string.
integer expression The number of characters to return.
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.
SQL/92 Vendor extension.
SQL/99 Vendor extension.
Sybase Not supported by Adaptive Server Enterprise.
International Languages and Character Sets
The following statement returns the value choco.
SELECT LEFT( 'chocolate', 5 )