To test for literal instances of a wildcard character, precede it by the escape character. : LIKE : String Functions MySQL TUTORIALS


MySQL TUTORIALS » String Functions » LIKE »

 

To test for literal instances of a wildcard character, precede it by the escape character.


If you do not specify the ESCAPE character, '' is assumed.

To search for 'n', specify it as '\n'.

To search for '', specify it as '\\'.

String Description
% Matches one '%' character
_ Matches one '_' character


SELECT 'ABCDE!' LIKE 'ABCDE_';
SELECT 'ABCDE_' LIKE 'ABCDE_';



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo String Functions
» LIKE