Retrieve Data Using the like Operator
Learn to extract specified data using the like operator in MySQL.
We'll cover the following...
The like
operator
We’ll close this first chapter by learning about the like
operator, which is very useful in where
clauses.
Let’s look at an example. Assume that we know that the name
of our customer ends with Woo
, but we don’t remember the exact name
. To search for customers whose name
ends with Woo
, we’ll use the following statement:
Press + to interact
select * from customers where name like '%Woo';
Note that ...