Sometimes the pattern, which you want to match, contains wildcard character e.g., 10%, _20, etc. In these cases, you can use the ESCAPE clause to specify the escape character so that MySQL interprets the wildcard character as literal character. If you don’t specify the escape character explicitly, the backslash character is the default escape character.
For example, if you want to find product whose product code contains string _20 , you can use the pattern %\_20% as the following query: