MySQL Tutorial

A database system used with PHP.

MySQL IN

The MySQL IN Operator

The IN operator allows you to specify multiple values in a WHERE clause.

The IN operator is a shorthand for multiple OR conditions.

Syntax:

SELECT column_name(s)
FROM table_name
WHERE column_name IN (value1, value2, ...);

Try It Yourself

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

Source Code
Result
Topics