Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest tumbler

Learn Latest Tutorials