Mega Code Archive

 
Categories / MySQL Tutorial / String Functions
 

To specify a different escape character, use the ESCAPE clause

mysql> mysql> SELECT 'ABCDE_' LIKE 'ABCDE|_' ESCAPE '|'; +------------------------------------+ | 'ABCDE_' LIKE 'ABCDE|_' ESCAPE '|' | +------------------------------------+ |                                  1 | +------------------------------------+ 1 row in set (0.00 sec) mysql>