映射更新语句 update

<update id="updateByPrimaryKey" parameterType="com.study.mybatis.entity.Country">
  update country
  set 
  	`NAME` = #{name,jdbcType=VARCHAR},
  	CODE = #{code,jdbcType=VARCHAR}
  where ID = #{id,jdbcType=INTEGER}
</update>

Last updated