WHERE clause
Meaning in databases & SQL, with examples
In databases & SQL, WHERE clause means: The part of a SQL statement that sets a condition, so only the rows that meet it are read, updated or deleted.
In Turkish: WHERE koşulu, filtre koşulu
How it is used
Used in SELECT, UPDATE and DELETE. People talk about 'filtering in the WHERE clause' and warn each other about an UPDATE or DELETE 'without a WHERE clause', which changes every row. Conditions are combined with AND, OR, IN, BETWEEN and LIKE.
Example sentences
Someone ran an UPDATE without a WHERE clause and every price became zero.
Add status = 'active' to the WHERE clause so cancelled accounts are excluded.
Common collocations
- add to the WHERE clause
- filter in the WHERE clause
- without a WHERE clause
- WHERE condition
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: SQL Statements and Queries
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
