### Error querying 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 'FROM pl3_method16cal_num WHERE id=15628942' at line 1
### The error may exist in com/wangcen/cp/mapper/Pl3Method16calNumMapper.java (best guess)
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT id,nums,right FROM pl3_method16cal_num WHERE id=?
### 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 'FROM pl3_method16cal_num WHERE id=15628942' at line 1
; bad SQL grammar []; nested exception is 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 'FROM pl3_method16cal_num WHERE id=15628942' at line 1
调用 MyBatis-Plus 的getById 方法时,报上面的错误。因为表中的字段有关键字。
比如我的表中有个字段为:right 。 此为关键字