Skip to content

ILIKE

SELECT name
FROM students
WHERE name ILIKE '%John%';
name
--------------
John Doe
John Smith

The ILIKE operator in the SQL query matches the student names in the PostgreSQL database which are containing ‘John’ regardless of the case.