...

>

SQL LIKE and Wildcards

SQL LIKE and Wildcards

Learn how to use LIKE and wildcards in SQL.

As we continue to implement data into the university database, we start to realize that as the database grows, finding specific records becomes increasingly challenging. This is particularly true when it comes to pattern-based searches or situations where we don’t have the full information. ...

MySQL

A simple approach might be to use the WHERE clause with an exact match condition. Consider the following SQL query:

MySQL
SELECT * FROM Student WHERE FullName = "A";

Would this return all students whose names start with "A"? Let’s test this query below:

MySQL

Did you get the answer? Of course not! This query only returns students whose entire name is exactly "A", which is not what the university administrator wants.

Can we use comparison ...