MySQL Tutorial

A database system used with PHP.

MySQL WHERE

The MySQL WHERE Clause

The WHERE clause is used to filter records.

It is used to extract only those records that fulfill a specified condition.

Syntax:

SELECT column1, column2, ...
FROM table_name
WHERE condition;

Note: The WHERE clause is not only used in SELECT statements, it is also used in UPDATE, DELETE, etc.

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics