TRIM SQL Function
Syntax
TRIM([trim_specification] [trim_characters ] FROM char_expression )
trim specification ::
LEADING
| TRAILING
| BOTH
Description
The function TRIM removes leading, trailing or both leading and trailing characters from the char_expression, that are present in trim_characters and returns the resultant string.
Example
SELECT TRIM ( LEADING 'x' FROM 'xxFairCom' )
FROM customers ;
FAIRCOM
------
FairCom
1 record selected
Details
Note: SQL-99 compatible