ASA SQL Reference
SQL Functions
Alphabetical list of functions
Removes leading and trailing blanks from a string.
TRIM ( string-expression )
string-expression The string to be trimmed.
SQL/92 Entry-level feature.
SQL/99 Core feature.
Sybase Not supported by Adaptive Server Enterprise.
The following statement returns the value chocolate with no leading or trailing blanks.
SELECT TRIM( ' chocolate ' )