SQL / MySQL
Beginner
Database
· 1 min read
LIKE search pattern
How do I search text with a keyword?
LIKE %term%.
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.