【解决问题】Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your S

Problem Description:

When updating data, I encounter the following error message:

Error updating database. Cause: java.sql.SQLSyntaxErrorException: 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 ‘order’’ at line 4

solution:

1. First check whether your fields match correctly. There may be errors in the characters.

2. It is also possible that SQL keywords are used accidentally. For example, the error here is because order is used as the field name of the data table, resulting in an error; the update can be successful by modifying the field name, such as changing order to order_nama. some type of.

Guess you like

Origin blog.csdn.net/weixin_44436677/article/details/130043463