The mysql-MYSQL Query statement contains a comma ..

Source: Internet
Author: User
The full-text index content format of the database is as follows: 1234,4321, 5555,6612345, 54321,55555, expires, 5555,666666 search for the UNIONSELECT * contents (content) AGAINST (& #39; 1234 & #39 ;) the returned results are, and mysql database index searches.

The full-text index content format of the database is roughly as follows:
1234,4321, 5555,6666
12345, 54321, 55555, 66666
123456,654321, 555555,666666
Search by statement

Union select * FROM sed_data13 where match (content) AGAINST ('20140901 ')
The returned result is
1234,4321, 5555,6666
12345, 54321, 55555, 66666
123456,654321, 555555,666666
Each of the three items has 1234.
If you want to search for 1234, add a comma at the end. I don't know how to express it in the statement? In this statement, the comma is equivalent to multiple conditions. Thank you!

Search statement

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.