![]()
![]() ![]() ![]() ![]() ![]() ![]() ![]() Documentation Top ![]() Global Index ![]() Reference Manual ![]() ![]() ![]() Developer's Guide ![]() ![]() Tuning Cloudscape ![]() ![]() |
TRIMThe TRIM function trims one or more instances of a single character from the beginning or end (or both) of a character expression. By default, TRIM trims one blank space from the beginning and one from the end of a character expression. The type of the result is VARCHAR. The length of the result is the maximum length of the source type. SyntaxA CharacterExpression is a CHAR, VARCHAR, or LONG VARCHAR data type, any built-in type that is implicitly converted to a string, or any Java data type that directly maps to a built-in type that is implicitly converted to a string. BOTH is implicit if LEADING, TRAILING, or BOTH is not specified. trimCharacter must be one single character. If trimCharacter is not specified, ' ' (blank) is implicit. If TRAILING is specified, TRIM removes one or more trailing characters equal to trimCharacter from the result. If LEADING is specified, TRIM removes one or more leading characters equal to trimCharacter from the result. If BOTH is specified (or implied by its absence), TRIM removes one or more leading or trailing characters equal to the trimCharacter from the result. TRIM(CharacterExpression) is the same as TRIM(BOTH ' ' FROM CharacterExpression). If FROM is specified, you must specify either or both of the following: If either trimCharacter or CharacterExpression is a user-specified null, the result of the expression is null. Examples | ||
![]() ![]() ![]() ![]() ![]() ![]() | ![]() ![]() Cloudscape Version 3.0 ![]() For technical support, go to: www.cloudscape.com and click Support. Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved. |