📜  java.sql.sqlsyntaxerrorexception:未知列 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:24.861000             🧑  作者: Mango

代码示例1
When this error is reported in the background, it means that the field name 
in the entity class is wrong. Solution:

1. Check whether the field name in the database is consistent with the field 
    name in the entity class, pay special attention to the word letters,

2. Check whether the fields in the database are consistent with the fields 
    in the entity class. For example, if there is no such field in the database, this error will be reported if it appears in the entity class (this is usually the case when the code written by others is changed.)