标签:sql pre integer type 对象 any mysq res property
<keyProperty="id" resultType="INTEGER">
select LAST_INSERT_ID()
</keyProperty>
放在insert语句之前
keyProperty ---数据库主键属性
在Controller直接拿对象就可以获取自增列的值
Integer id = companyPositionInfo.getId();
标签:sql pre integer type 对象 any mysq res property
原文地址:http://www.cnblogs.com/SeaWxx/p/7978061.html