The meaning of the four matching characters % indicates zero or multiple arbitrary characters. It indicates any character in the specified range []. Any single character [^] is not in the specified range. the character string must be enclosed in quotation marks, for example, the following example: LIKE 'br % 'returns any string starting with "BR. LIKE 'br % 'returns any character starting with "Br. LIKE '% een' returns any string ended with "een. LIKE '% en %' returns any string containing "en. LiKE 'en' returns a string of three characters ending with "en. LIKE '[CK] %' returns any string starting with "C" or "K. LIKE '[S-V] lng' returns a four-character string ending with "ing ", starting from S to v like 'M [^ c] %', return any string starting with "M" and the second character is not "c. Note: using the LIKE operator usually causes SQL Server to use the associated index for the given table. It tells SQL server to compare the specified string and find any content that matches the provided match. Because of this type of original fixation, it is not recommended to use this type of search or comparison in large tables, at least remind users that it is very important for the system to wait for data rows that meet the search criteria.
--------------------------------------------------------------------------------