SelectKey = SelectKey; SelectKey = SelectKey; SelectKey = SelectKey; SelectKey = SelectKey; SelectKey = SelectKey; SelectKey = SelectKey; SelectKey = SelectKey
@Insert({"insert into song(name,singer,category,writer,language,issudate)values(#{name},#{singer},#{category},#{writer},#{language},#{issudate})"
})
@SelectKey(statement = "select last_insert_id()",before = false, resultType = Integer.class,keyProperty = "id")
public int insert(Songs songs);
}
Read More:
- Error 1364 (HY000): field ‘SSL_ cipher’ doesn’t have a default value
- Error: field * doesn’t have a default value
- Get the default value of the field
- How to Solve mybatis returns null when querying Oracle database with char type field
- PostgreSQL sets the default value of the field to the current year
- Mybatis integrates Oracle query and reports an error in the datetime type field
- In SQLite database, set the default value for the field as the current time
- Error attempting to get column ‘xxxxx’ from result set — after Lombok is annotated with builder, mybatis cannot recognize the correct type of field
- When the mybatis field contains an expression, an error is reported when it is stored in the database
- Use xx [‘xx ‘] = XX to set field value or does not support field: XXX
- The jar package download of Maven project appears (could not transfer artifact. Org mybatis:mybatis )
- Error 1136 (21s01): column count doesn’t match value count at row 1
- Failed to retrieve plugin descriptor for org.mybatis.generator :mybatis-generator
- Error: Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2
- Two ways of fuzzy query in mybatis
- Related configuration of mybatis project
- Table ‘sell.hibernate_sequence‘ doesn‘t exist
- Error handling after mybatis custom paging plug-in
- Mybatis custom list collection parser
- Solve the problem that the interface between C # WinForm program and Oracle doesn’t respond for a long time