1.如果要插入数据的表的主键字段有自增的规则
示例:
<insert id="save" keyProperty="id" useGeneratedKeys="true" parameterType="student">
INSERT into<include refid="tableName"/>(studentName,phone,birth)
VALUE (#{studentName},#{phone},#{birth});
</insert>
用法:
在<ins