[Sophomore Upper][Teacher Teasing Series] What is fuzzy query

Database query is divided into: complete query and fuzzy query.

        The so-called fuzzy query is: the way to find relevant data by using some parameters

                        The statement of fuzzy query:

                                SELECT field FROM table WHERE a field Like condition

Like is the keyword of fuzzy query

% is a wildcard, any match. For example: Wang% The second half is any character, similarly you can put % anywhere in the condition field

_ represents any single character. It is often used to limit the character length of expressions. For example, Wang_ appears as Wang Wu Wang Liu

                        

Guess you like

Origin blog.csdn.net/IDApprentice/article/details/126827675