异常如下:

异常之【You have an error in your SQL syntax】

 

### Error updating database.  Cause: 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 'WHERE id = '10050'' at line 15

仔细看的话  是因为SQL语句中   红色部分  末尾误写  ,   所致

 

一般遇到

 

 check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = '10050'' at line 15

 

 

这种异常语句   在 'WHERE id = '10050''   左边仔细查看  可以解决

2017-12-27   15:28:18

相关文章:

  • 2021-06-14
  • 2021-12-22
  • 2021-07-28
  • 2021-04-09
  • 2021-05-31
  • 2021-12-19
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-25
  • 2021-11-16
相关资源
相似解决方案