The eighth chapter is filtered with a wildcard characterThis chapter describes what wildcards are, how to use wildcards, and how to use the LIKE operator for a wildcard search to make complex filtering of data.8.1 Like operatorAll of the operators
lesson sixth filtering with wildcard characters6.1 Like operatorThe wildcard itself is actually a character that has special meanings in the WHERE clause of SQL, and SQL supports several wildcard characters. To use wildcard characters in a search
1. Like operatorPreviously used operators are for known data, and wildcard characters can also be used to search for unknown data.wildcard character (wildcard): used to match Special characters that are worth a portion.Search pattern: A search
Introduction to MySQL
MySQL is an open source relational database management system (RDBMS), the MySQL database system uses the most commonly used database management language-Structured Query Language (SQL) for database management.
Tips for
Reprint: http://new-restart.iteye.com/blog/1416765SQL like wildcard character fuzzy query techniques and special charactersSQL like wildcard character fuzzy query techniques and special charactersHow to deal with time query by 1,sql likeThere are
SQL often use like for fuzzy query, and fuzzy query will use the hundred semicolon "%", underline "_" These wildcard characters, where "%" matches any number of characters, "_" match a single character. If we want to blur the query with wildcard
Transfer from http://new-restart.iteye.com/blog/1416765SQL like wildcard character fuzzy query techniques and special charactersHow to deal with time query by 1,sql likeThere are savetime (smalldatetime type) fields in the SQL data table with two
MySQL wildcard Learning Summary
MySQL wildcard
SQL pattern matching allows you to use "_" to match a single character, while "%" matches a random number of characters (including zero characters ). In MySQL, the SQL Mode ignores uppercase and
Like operatorTo use wildcard characters in a search clause, you must use the LIKE operator.Note: When is the operator not an operator? The answer is when it is used as a predicate.
Percent percent (%) wildcard character
% indicates any
I MySQL rookie a
Problems encountered with wildcards help you, big God.
I want to select the data in the users table with the name "Szo" or "Szö"
So write the following code:
SELECT * from the users where name like '%sz[oö]% '
The database has
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.