Difference between revisions of "TRIM()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Helen.george (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to remove trailing blanks | Function to remove trailing blanks | ||
− | |||
==Syntax== | ==Syntax== | ||
TRIM(<expC>) | TRIM(<expC>) | ||
− | |||
==See Also== | ==See Also== | ||
[[ALLTRIM()]], [[LTRIM()]], [[RTRIM()]] | [[ALLTRIM()]], [[LTRIM()]], [[RTRIM()]] | ||
− | |||
==Description== | ==Description== | ||
The TRIM() function is synonymous with the RTRIM() function. It removes trailing blank characters from the character expression <expC>. This function should only be used in conjunction with the RPAD() function when used in index expressions, since index keys must be fixed length. | The TRIM() function is synonymous with the RTRIM() function. It removes trailing blank characters from the character expression <expC>. This function should only be used in conjunction with the RPAD() function when used in index expressions, since index keys must be fixed length. | ||
− | |||
==Example== | ==Example== | ||
Line 26: | Line 22: | ||
Christopher Thompson | Christopher Thompson | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== |
Revision as of 11:21, 12 December 2012
Purpose
Function to remove trailing blanks
Syntax
TRIM(<expC>)
See Also
Description
The TRIM() function is synonymous with the RTRIM() function. It removes trailing blank characters from the character expression <expC>. This function should only be used in conjunction with the RPAD() function when used in index expressions, since index keys must be fixed length.
Example
fname = "Christopher " sname = "Thompson " ? len(fname) 20 ? len(trim(fname)) 11 ? trim(fname)+" "+trim(sname) Christopher Thompson
Products
Lianja, Lianja Server