Javatpoint Logo

91-9990449935

 0120-4256464

PostgreSQL OR condition

The PostgreSQL OR condition is used with WHERE clause to select unique data either from one column or more than one column in a table.

Syntax:

Let's take a table "EMPLOYEES" having the following data.

postgresql-or-condtiton1

Execute the following query:

Output:

postgresql-or-condtiton2