trainingtrains Logo

91-9990449935

 0120-4256464

SQL OR

The SQL OR condition is used in a SQL query to create a SQL statement where records are returned when any one of the condition met. It can be used in a SELECT statement, INSERT statement, UPDATE statement or DELETE statement.

Let's see the syntax for OR condition:

SQL "OR" example with SQL SELECT

SQL "OR" example with SQL INSERT

You can see in below example that how an SQL "OR" condition is used with SQL insert statement.

For example:

SQL "OR" example with SQL UPDATE

For example:

SQL "OR" example with SQL DELETE

For example:

Next TopicSQL with clause