PostgreSQL - ILIKE operator Last Updated : 01 Nov, 2023 Comments Improve Suggest changes Like Article Like Report The PostgreSQL ILIKE operator is used to query data based on pattern-matching techniques. Its result includes strings that are case-insensitive and follow the mentioned pattern. It is important to know that PostgreSQL provides 2 special wildcard characters for the purpose of patterns matching as below: Percent ( %) for matching any sequence of characters.Underscore ( _) for matching any single character.Syntax of ILIKE Operatorcoloumn_name ILIKE pattern; For the sake of this article we will be using the sample DVD rental database, which is explained here. Now, let's look into a few examples. Examples of PostgreSQL ILIKE OperatorExample 1: Here we will make a query to find the customer in the "customer" table by looking at the "first_name" column to see if there is any value that begins with "ke" using the ILIKE operator in our sample database. Code: SELECT first_name, last_name FROM customer WHERE first_name ILIKE 'Ke%'; Output: Notice few things in the above example, the WHERE clause contains a special expression: the first_name, the LIKE operator, and a string that contains a percent (%) character, which is referred to as a pattern. Example 2: Here we will query for customers whose first name begins with any single character, is followed by the literal string "aR", and ends with any number of characters using the ILIKE operator in our sample database. Code: SELECT first_name, last_name FROM customer WHERE first_name ILIKE '_aR%'; Output: Comment More infoAdvertise with us Next Article PostgreSQL - ILIKE operator R RajuKumar19 Follow Improve Article Tags : Misc Python postgreSQL-operators Practice Tags : Miscpython Similar Reads PostgreSQL - LIKE operator In PostgreSQL, the LIKE operator is an essential tool for pattern matching in SQL queries. Whether we're dealing with large datasets or searching for specific string patterns, this operator provides a powerful way to filter and retrieve data based on partial matches. By Using wildcard search techniq 5 min read PostgreSQL - NOT LIKE operator The PostgreSQL NOT LIKE operator is a powerful tool used in SQL queries to filter out rows that do not match specific patterns. By utilizing this operator, users can eliminate undesired string patterns from their results, enabling more precise data retrieval. It is particularly beneficial in scenari 3 min read PostgreSQL - IN operator The IN operator in PostgreSQL is a powerful and efficient tool used to filter records based on a predefined set of values. When used with the WHERE clause, it simplifies SQL queries and enhances readability, making it a key component of SQL query optimization for data retrieval and database manipula 4 min read PostgreSQL - ALL Operator The PostgreSQL ALL operator is a powerful tool for comparing a value with a list of values returned by a subquery. This operator is essential for filtering and querying data based on comparisons with multiple values, making it a valuable addition to any PostgreSQL user's toolkit.Let us better unders 3 min read PostgreSQL - IS NULL operator The PostgreSQL IS NULL operator is used to check whether a value is NULL. In the context of databases, NULL indicates that data is either missing or not applicable. Since NULL cannot be compared directly with any integer or string (as such comparisons result in NULL, meaning an unknown result), the 2 min read Like