English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Usage and Example of SQL OR Keyword

SQL Keyword Reference

OR

The OR command is used with WHERE to query rows that satisfy either condition as true.

The following SQL statement selects all fields from the 'Customers' table where the city is 'Berlin' or 'München':

SELECT * FROM Customers
WHERE City='Berlin' OR City='München';

SQL Keyword Reference