<!-- MySQL自动生成主键-->
<insert id="insert" useGeneratedKeys="true" keyProperty="id">
INSERT INTO t_car(id,name) VALUES (#{id},#{name})
</insert>
MyBatis MySQL自增
猜你喜欢
转载自www.cnblogs.com/java-ty/p/11818229.html
今日推荐
周排行