keyproperty 表示返回主键放入id保存
order相对insert语句的执行顺序,
resulttype是id的类型java.lang.integer
这个sql语句后面id是有带括号的

测试

keyproperty 表示返回主键放入id保存
order相对insert语句的执行顺序,
resulttype是id的类型java.lang.integer
这个sql语句后面id是有带括号的
测试
本文标题:mybatis查询最后的id
本文链接:https://www.haomeiwen.com/subject/hteonttx.html
网友评论