![]()  | Products  | 
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » String Functions » TRIM | 
TRIM(LEADING|TRAILING|BOTH <CharacterExpression>
     FROM <StringExpression>)
TRIM(LEADING|TRAILING|BOTH <CharacterExpression>,
     <StringExpression>)
<StringExpression> = 
Type of:
CHARACTER|CHAR
CHARACTER VARYING|VARCHAR
GUID
CHARACTER LARGE OBJECT|CLOBSame as input
| Keyword | Description | 
| LEADING | Deletes the character in the leading portion of the string. | 
| TRAILING | Deletes the character in the trailing portion of the string. | 
| BOTH | Deletes the character at both ends of the string. | 
SELECT TRIM(TRAILING ' ' FROM CustomerID) AS CustomerID FROM Customers
| Deviation | Details | 
| Argument Separator | The use of a comma separator for the function arguments is an ElevateDB extension. | 
This web page was last updated on Tuesday, September 16, 2025 at 04:56 PM  | Privacy Policy © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ?  | 

