select * from table where nick='好店'; 输入'' 然后输入好店 就变成乱码 你可以这样 先输入'然后切到中文输入法,然后再输入 好店,再输入'; 就能查询出来. 这个编码问题真麻烦.