WHERE

Filters rows: only the ones matching the condition are read, changed or deleted.

Also called: LIKE, IN, BETWEEN

Source
General
Language
SQL

In plain English

Operators: =, <>, <, >, BETWEEN, IN (...), LIKE 'Bali%' (% means "anything"), IS NULL. Combine with AND, OR, brackets.

Example

WHERE status = 'new' limits the list to leads nobody has answered yet.

In code

SELECT * FROM businesses
WHERE city IN ('Ubud', 'Canggu') AND name LIKE '%warung%';

An UPDATE or DELETE without WHERE hits every row in the table.

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30