MySQL fuzzy query based on underline

Source: Internet
Author: User

Make a little progress every day!


Note that there is no percent%

Two underscores:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/51/32/wKiom1Ri_v-Bt7POAAFfnsSSOrY276.jpg "title=" 111. JPG "alt=" wkiom1ri_v-bt7poaaffnsssory276.jpg "/>


Three underscores:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/51/32/wKiom1Ri_xLzeLYcAAF8b6kfBQA161.jpg "title=" 22.jpg "alt=" Wkiom1ri_xlzelycaaf8b6kfbqa161.jpg "/>



Related:

% represents any number of characters _ represents a character in MySQL, SQL mode defaults to case-insensitive


_: Represents any single character. Matches a single arbitrary character, which is commonly used to restrict the expression's character-length statement: ( which can represent one Chinese character )




Reference:

http://blog.csdn.net/my2010sam/article/details/19109235



This article is from "Phper Xuchen-Focus on PHP Technology" blog, be sure to keep this source http://xuqin.blog.51cto.com/5183168/1575689

MySQL fuzzy query based on underline

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.