Javatpoint Logo

91-9990449935

 0120-4256464

PostgreSQL LIKE condition

The PostgreSQL LIKE condition is used with WHERE clause to fetch data from a table where specified condition satisfies the LIKE condition.

Syntax:

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

postgresql-like-condition1

Execute the following query:

Output:

postgresql-like-condition2

Note: In the above example you can see that record is fetched where "NAME" is like as "Aj%'.