What does WHERE clause mean?

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.

nounCore term

Databases & SQL vocabulary · SQL Statements and Queries

In Turkish: WHERE koşulu, filtre koşulu

Also used in: Software Engineering

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

  1. Someone ran an UPDATE without a WHERE clause and every price became zero.

  2. 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

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: