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: more than one row returned by a subquery used as an expression
- Ora-00947: not enough values
- Two ways of fuzzy query in mybatis
- Related configuration of mybatis project
- CRM related SQL statements
- Error 1136 (21s01): column count doesn’t match value count at row 1
- Pit encountered by entity class data type BigDecimal
- About java “Error: bad binary operator types”
- Box mount Cody_ How to listen to Pandora in Cody
- Leetcode: 7. Reverse Integer(JAVA)
- Raise in Oracle_APPLICATION_Error Usage
- [Python] pandas Library pd.to_ Parameter arrangement and example of Excel operation writing into excel file
- R language: na.fail and na.omit
- Mybatis custom list collection parser
- Introducing pair in Java
- Exception in thread “main“ java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to XXX
- Solution of error converting data type varchar to datetime in SQL Server
- Java long type error: error: integer number too large
- Enum type and set type of MySQL
- Cause check of unreachable statement exception in Java