TRIM([remstr FROM] str)
The function is used to return the substring after deleting all remstr strings on both sides of the string str. Remstr defaults to spaces. For example:
1 2 3 4 5 |
|
TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM] str)
function is used to return all remstr on both sides/left/right of the deleted string str The substring after the string, the strings on both sides (BOTH) are deleted by default, and remstr defaults to spaces. For example:
1 2 3 4 5 |
|
The above is the detailed content of How to use the TRIM() function in MySQL. For more information, please follow other related articles on the PHP Chinese website!