TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM] str), TRIM([remstr FROM] str) : TRIM : String Functions MySQL TUTORIALS


MySQL TUTORIALS » String Functions » TRIM »

 

TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM] str), TRIM([remstr FROM] str)


Returns the string str with all remstr prefixes or suffixes removed.

If none of the specifiers BOTH, LEADING, or TRAILING is given, BOTH is assumed.

remstr is optional and, if not specified, spaces are removed.

mysql>
mysql>
mysql> SELECT TRIM('  navioo   ');
+---------------------+
| TRIM('  navioo   ') |
+---------------------+
| navioo              |
+---------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo String Functions
» TRIM