Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the responsive-lightbox domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/wp-includes/functions.php on line 6114
Pattern Matching in SQL - Using Wildcards - Testingpool

Pattern Matching in SQL – Using Wildcards

In the previous post we have studied about the ‘WHERE’ clause (used to filter out the output ) and the ‘EQUALITY’ operator ( used along with the WHERE clause to specify the filter condition). In this post we will study about another operator, used along with WHERE clause called ‘LIKE’ which is used for ‘Pattern Matching’.

What is meant by pattern matching  and How it differs from Equality

What are Wildcards?

  • Wildcards are Special Characters that are used to perform ‘Pattern – Matching’.
  • They are basically used to search similar data in the table.
  • They increase the scope of searching in the string.
  • Wildcard uses some characters called ‘Wildcard Characters’. These characters act as substitute for other characters in the string.
  • ‘LIKE’ is an operator which is used in combination with wildcard characters .The pattern to be matched is written after LIKE operator.
  • The LIKE operator can be used in combination with SELECT, INSERT,UPDATE and DELETE.

Types of Wildcard Characters :

 

 

Avatar photo

Shikha Katariya

Shikha

You may also like...