Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » SQL Functions » Alphabetical list of functions

TRANSACTSQL function [Miscellaneous] Next Page

TRIM function [String]

Removes leading and trailing blanks from a string.


TRIM( string-expression )


string-expression    The string to be trimmed.


This function supports NCHAR inputs and/or outputs.

See also
Standards and compatibility

The following statement returns the value chocolate with no leading or trailing blanks.

SELECT TRIM( '   chocolate   ' );