Meaning of four matching characters

Source: Internet
Author: User
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: LIKEBR % returns any string starting with BR. LIKEBr % returns

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 % ', return

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 fixation, it is not recommended to use this type of search or comparison in large tables. At least we should remind users that it is very important for the system to wait for data rows that meet the search criteria.
--------------------------------------------------------------------------------

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.