TRIM()
Trims leading and/or trailing spaces or other substrings from a string
VARCHAR
or BLOB
TRIM ([<adjust>] str) <adjust> ::= {[<where>] [what]} FROM <where> ::= BOTH | LEADING | TRAILING
Parameter | Description |
---|---|
str |
An expression of a string type |
where |
The position the substring is to be removed from — |
what |
The substring that should be removed (multiple times if there are several matches) from the beginning, the end, or both sides of the input string str.By default, it is space ( |
Removes leading and/or trailing spaces (or optionally other strings) from the input string.
Note
|
If str is a |
Warning
|
When used on a |