String Functions MySQL Tutorial

mysql>
mysql> SELECT TRIM(LEADING 'XXX' FROM "XXXFileName");
+----------------------------------------+
| TRIM(LEADING 'XXX' FROM "XXXFileName") |
+----------------------------------------+
| FileName                               |
+----------------------------------------+
1 row in set (0.00 sec)