% means 0 or more characters. : Percentage wildcard « Regular Expression « SQL / MySQL






% means 0 or more characters.

       
mysql>
mysql> CREATE TABLE sales_rep(
    ->   employee_number INT,
    ->   surname VARCHAR(40),
    ->   first_name VARCHAR(30),
    ->   commission TINYINT
    -> );
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql>
mysql> SELECT * FROM sales_rep WHERE surname LIKE '%e%';
Empty set (0.00 sec)

mysql>
mysql> drop table sales_rep;
Query OK, 0 rows affected (0.00 sec)

   
    
    
    
    
    
    
  








Related examples in the same category

1.Usage of the % wildcard
2.The % wildcard returns any number of characters
3.show records where the model is a "cross cut" type