Tsallaka zuwa abun ciki
Justice Tech School

LIKE Patterns

% matches any run of characters and _ matches exactly one.

Example
SELECT name FROM students WHERE name LIKE 'A%';
SELECT name FROM students WHERE name LIKE '_o%';

Result

name
Kofi

Exercise

Names ending in a.

name LIKE ''

Quiz Test

What does _ match?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.