What is the Wildcard Operator in MySql
SQL wildcards can substitute for one or more characters when searching for data in a database. SQL wildcards must be used with the SQL LIKE operator.
Sintax :
Let's create the table we will use for our examples:
Script:
Check the table to see the data and the structure.
Very good
Example:
-we will use the wildcard operator in front.
-we see that the query brings all the names that have the string 've' at the end of the word.
Example:
-we will use the wildcard operator at the end.
-we see that the query brings all the names that have the string 'MI' at the Front of the word.
Example :
-we will use the wildcard operator at the front and end.
-we see that the query brings all the names that have the string 'k' inside the word.