Questions about SQL Server failing to query Chinese

Source: Internet
Author: User

The version of SQL Server is 2016, and you randomly try a query with a WHERE clause. As follows:

Select *  from  wherelike'% system%'

Na, how not to find out, clearly there should be several.

Does SQL Server not support fuzzy queries? It's not possible, after all, it's version 2016.

So just try to use wildcard characters to query, there is the result.

Replace the Chinese part of the SQL statement with the appropriate English, with the result.

Estimation is the evil of the coding problem, first on the search engine, got a solution, as follows:

Select *  from  where like N'% system%'

Try, the query results are normal.

The problem is also mentioned on Microsoft's website:

https://support.microsoft.com/en-us/kb/239530

Questions about SQL Server failing to query Chinese

Related Article

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.