If you wanted to trim leading and trailing characters, you would use the keyword BOTH : TRIM : String Functions MySQL TUTORIALS


MySQL TUTORIALS » String Functions » TRIM »

 

If you wanted to trim leading and trailing characters, you would use the keyword BOTH


mysql>
mysql>
mysql> SELECT TRIM(BOTH 'XXX' FROM "XXXFileNameXXX");
+----------------------------------------+
| TRIM(BOTH 'XXX' FROM "XXXFileNameXXX"|
+----------------------------------------+
| FileName                               |
+----------------------------------------+
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