MySQL OR Condition

MySQL OR condition specifies that if you take two or more conditions then one of the conditions must be fulfilled to get the records as result.

MySQL OR Syntax

WHERE condition1  
OR condition2  
OR condition_n;  

MySQL OR Example

SELECT * FROM students WHERE  (age = '15' AND class = '10') OR (id < 10);    

© copyright 2017-2022 Completedone pvt ltd.