If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

SQL: Filtering with LIKE

You can use the LIKE operator in the WHERE condition to do a pattern matching comparison, like to find a string somewhere in a text value. The "%" character will match any sequence of 0 or more characters in the value, the "_" character will match a single character. Other characters match either their lower case or upper case equivalent.
For more details, see the SQLite reference for LIKE.
▶️ You can also learn about this in our Querying IN subqueries talkthrough.

Want to join the conversation?

No posts yet.