<insert id="insertNewStation" parameterType="………………">
<selectKey keyProperty="id" resultType="String" order="BEFORE">
SELECT 序列名 as id FROM DUAL
</selectKey>
insert into 表名
(id,station, checkstarttime, reviewer,checkendtime)
values (#{id,jdbcType=VARCHAR},#{station,jdbcType=VARCHAR},
#{checkstarttime,jdbcType=VARCHAR}, #{reviewer,jdbcType=VARCHAR},
#{checkendtime,jdbcType=VARCHAR})
</insert>
oracle主键自增_mybatis处理
最新推荐文章于 2024-07-29 22:20:31 发布