1、 Question
Error reporting result:
2、 Cause error code
The error I caused was caused in the Dao/studentdao.xml file, that is, the Dao configuration file of the persistence layer was written incorrectly. Here is my error code:
<select id="insertStudent"> insert into student1(name, age) values (#{name}, #{age}) </select>
The reason for the error is that it is easy for novices to make a mistake. Writing the inserted data label as the label of query data leads to an error
3、 Solution
Correct code
<insert id="insertStudent"> insert into student1(name, age) values (#{name}, #{age}) </insert>
Similar Posts:
- With check option in SQL
- pymysql.err.OperationalError: (1054, “Unknown column’aa’in’field list’)
- MySQL error message: subquery returns more than 1 row and its solution
- Mybatis where 1 = 1 and Tags
- [How to Solve]error: invalid array assignment
- How to solve the problem of potentially unsupported type in Python sqllite
- How to Solve Python TypeError: ‘module’ object is not callable
- [Solved] MYSQL Error: “ Every derived table must have its own alias”
- MySQL database insert into statement with parameters Error
- MYSQL Error: Invalid use of group function [How to Solve]