You are on page 1of 4

1.

The Percent symbol(%)

It is used to search or filter the records from the table that specifies 0, 1, or more characters.
We can use it either in the first place, last place, or both sides of a string with the LIKE clause.

Syntax
The basic syntax for using this wildcard character is:

2. SELECT * FROM tab_name WHERE column_name LIKE 'X%';  

3. SELECT * FROM tab_name WHERE column_name LIKE '%X';  

4. SELECT * FROM tab_name WHERE column_name LIKE 'X%X';  
In the above syntax, the 'X' specifies any single character, and % matches any number of
characters.
Thank You

You might also like