mybatis入门使用3:selectKey返回最近插入的id

在使用mybatis insert时,使用id自增有时须要返回最新插入的id;java <insert id="insert" parameterType="com.lls.model.Employee"> <selectKey resultType="java.lang.Integer" order="AFTER" keyProperty="id"> SELECT LAST_INSERT_ID(
相关文章
相关标签/搜索