Mybatis insert 序列

<insert id="addAreaServiceMapping" parameterType="AreaServiceMappings">
        <selectKey keyProperty="id" resultType="long" order="BEFORE">  
            select IE_SQE_AREASERVICEMAPPINGS.Nextval from dual 
        </selectKey>
        insert into IE_AREASERVICEMAPPINGS (ID,  SERVICEURL,  SERVICEDES)
        values(#{id},#{serviceUrl,jdbcType=VARCHAR},#{serviceDes,jdbcType=VARCHAR})
</insert>

 

你可能感兴趣的:(mybatis,序列,insert)