SQL OR clause is used to select data when any of the two conditions are met.
The syntax of SQL OR clause is
WHERE condition1 OR condition2;
SQL OR is executed when any of the both conditions are met.
Let us take a Student Table.
Now we select the data where the Student City is Hyderabad or Address is Park Avenue.
The Query is written as:
City=’Hyderabad’ OR Address=’Park Avenue’;
The output is displayed as
OR Clause can be used with INSERT, UPDATE & DELETE statements.