把 update table user set name=写成了,update table user setname=,会引起MySQL解析错误,但是报的错误让人莫名其妙,它会报一个编码错误:
com.mysql.jdbc.exceptions.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 '= '???????‘?', mail = 'admin@111.com', postalAddress = '??????111', postCode = '' at line 1
其实是sql语句不对。