解决办法汇总:You have an error in your SQL syntax; check the manual that corresponds to your MySQL
最近在弄一个项目,有一处需求是要求PC读取信息并写入数据库其中遇到了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 '1)' at line 1的报错,在网上找了好久,也没有解决。后来自己查了很多资料,才得以解决,现在根据自身加以总结。1、单引号、反单引号分不清java中键值用(