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.

Syntax

TRIM( string-expression )

Parameters

string-expression    The string to be trimmed.

Remarks

This function supports NCHAR inputs and/or outputs.

See also
Standards and compatibility
Example

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

SELECT TRIM( '   chocolate   ' );