![]() Previous |
![]() Next |
TRIM removes leading or trailing characters (or both) from a character string.
Syntax
TRIM([ { { LEADING | TRAILING | BOTH }[ trim_character ] | trim_character } FROM ] trim_source )
Arguments
LEADING removes matching characters from the beginning of the string.
TRAILING removes matching characters from the end of the string.
BOTH removes matching characters from both the beginning and the end of the string. (Default)
trim_character is a single character to be removed. By default, it is a space.
trim_source is the text expression to be trimmed.