1.0

Table Of Contents
If trimSource's data type is CHAR or VARCHAR, the return type of the TRIM function will be VARCHAR.
Otherwise the return type of the TRIM function will be CLOB.
Examples
-- returns 'derby' (no spaces)
VALUES TRIM(' derby ')
-- returns 'derby' (no spaces)
VALUES TRIM(BOTH ' ' FROM ' derby ')
-- returns 'derby ' (with a space at the end)
VALUES TRIM(LEADING ' ' FROM ' derby ')
-- returns ' derby' (with two spaces at the beginning)
VALUES TRIM(TRAILING ' ' FROM ' derby ')
-- returns NULL
VALUES TRIM(cast (null as char(1)) FROM ' derby ')
-- returns NULL
VALUES TRIM(' ' FROM cast(null as varchar(30)))
-- returns ' derb' (with a space at the beginning)
VALUES TRIM('y' FROM ' derby')
-- results in an error because trimCharacter can only be 1
character
VALUES TRIM('by' FROM ' derby')
UCASE or UPPER function
UCASE or UPPER takes a character expression as a parameter and returns a string in which all alpha characters
have been converted to uppercase.
Syntax
UCASE or UPPER ( CharacterExpression )
If the parameter type is CHAR , the return type is CHAR. Otherwise, the return type is VARCHAR.
The length and maximum length of the returned value are the same as the length and maximum length of the
parameter.
vFabric SQLFire User's Guide542
vFabric SQLFire Reference