English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
IN
The IN clause allows you to specify multiple values in the WHERE clause.
The IN operator is a shorthand for multiple OR conditions.
SELECT * FROM Customers The following SQL selects all customers in 'Germany', 'France', and 'UK':
The following SQL selects all customers who are not in 'Germany', 'France', or 'UK':
SELECT * FROM Customers WHERE Country NOT IN ('Germany', 'France', 'UK');
The following SQL selects all customers from the same country as the suppliers:
SELECT * FROM Customers WHERE Country IN (SELECT Country FROM Suppliers);