SQL / MySQL Beginner Database · 1 min read

LIKE search pattern

Start the SQL / MySQL learning path »

❮ SQL / MySQL Home All Tutorials ❯

How do I search text with a keyword?

LIKE %term%.

Example

SQL / MySQL Example
SELECT id, name
FROM students
WHERE name LIKE '%ada%'
ORDER BY name
LIMIT 20;

Line-by-Line Walkthrough

Leading % prevents index use — OK for small tables/learning apps.

Need more coins?

You do not have enough coins for this action.

Your balance: 0 coins

Share

Reactions

Loading reactions…