jsp查询数据库时出现乱码
编码方式一致,为什么还会出现下面的错误?
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '???????' at line 1
在以id查询时,却不会出现错误,并且中文也可以正常输出