buhong 发表于 2016-11-25 09:32:05

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>
页: [1]
查看完整版本: Mybatis insert 序列