bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL OR Keyword

Concept visual

SQL OR Keyword

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

OR Keyword

Previous

❮ SQL Keywords

Next

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 »

Previous

❮ SQL Keywords

Next

Previous

SQL NOT NULL Keyword

Next

SQL ORDER BY Keyword