SQL OR Keyword


OR

The OR command is used with WHERE to include rows where either condition is true.

The following SQL statement selects all fields from "Customers" where city is "Berlin" OR city is "München":

Example

SELECT * FROM Customers
WHERE City='Berlin' OR City='München';
Try it Yourself »

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.