背景: visual studio 2019C#mySQL查询中文无结果 原因:这好像是数据库中的编码问题 解决方法: 更改数据库编码方式 待完成…… 在汉字前面加'N' 如: select sno from student where sname = N'张三';