产生原因是因为编码问题 数据库是英文版 但是数据库中数据又是中文的 所以查询中文时需要加上N select * from customer where Username=N'张三' 转载于:https://www.cnblogs.com/ideacore/p/6423702.html