ibats插入获取自增主键:oracle

oracle:

<insert id="aaaIInsert" parameterClass="A">

       <selectKey keyProperty="id" resultClass="int">

           select A_SEQ.CURRVAL from dual

       </selectKey>

    insert into a (id,name) values(A_SEQ.NEXTVAL,#name#)

</insert>

你可能感兴趣的:(ibats插入获取自增主键:oracle)