Home > Database > Mysql Tutorial > c#-C#操作mysql数据库 不支持中文查询

c#-C#操作mysql数据库 不支持中文查询

WBOY
Release: 2016-06-06 09:40:23
Original
1299 people have browsed it

mysqlc#数据库

例如
select * from testdata where name='张2Q' 在navicat里面运行很正常 ,结果很正确
但是在C#里面执行,死活没有结果。如果换成select * from testdata where name='ss' 这两个的结果都对,这是为什么呀?找来找去发现就是因为C#查询的时候不支持中文,怎么解决呀?大神们帮帮忙。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template