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 PostgreSQL - BETWEEN Operator The PostgreSQL BETWEEN operator is an essential tool for filtering data within a specific range. Often used in the WHERE clause of SELECT, INSERT, UPDATE, and DELETE statements, this operator simplifies range-based conditions, making queries faster and easier to read. In this article, we will explai 3 min read SQL Operators SQL operators are important in database management systems (DBMS) as they allow us to manipulate and retrieve data efficiently. Operators in SQL perform arithmetic, logical, comparison, bitwise, and other operations to work with database values. Understanding SQL operators is crucial for performing 6 min read Python MySQL - LIKE() operator In this article, we will discuss the use of LIKE operator in MySQL using Python language. Sometimes we may require tuples from the database which match certain patterns. For example, we may wish to retrieve all columns where the tuples start with the letter âyâ, or start with âbâ and end with âlâ, o 3 min read Perl | Operators | Set - 2 Operators are the main building block of any programming language. Operators allow the programmer to perform different kinds of operations on operands. In Perl, operators symbols will be different for different kind of operands(like scalars and string). Some of the operators already discussed in Per 7 min read PostgreSQL - WHERE clause The PostgreSQL WHERE clause is a critical component of SQL queries, allowing users to filter records based on specified conditions. In this tutorial, we'll explore how the WHERE clause works in PostgreSQL, its integration with the SELECT statement, and various examples. By using the WHERE clause, we 6 min read Like