MySQL:Mapper文件insert语句设置 useGeneratedKeys="true" keyProperty="id"
Oracle:Mapper文件insert语句增加
<selectKey keyProperty="id" order="BEFORE" resultType="Integer">
select xxx_SEQ.nextval from dual
</selectKey>
MySQL:Mapper文件insert语句设置 useGeneratedKeys="true" keyProperty="id"
Oracle:Mapper文件insert语句增加
<selectKey keyProperty="id" order="BEFORE" resultType="Integer">
select xxx_SEQ.nextval from dual
</selectKey>