Mybatis中动态SQL语句中的parameterType不同数据类型的用法
1. 简单数据类型,
    此时#{id,jdbcType=INTEGER}中id可以取任意名字如#{a,jdbcType=INTEGER},
    如果需要if test则一定使用<if test="_parameter != null">,
    此处一定使用_parameter != null而不是id != null
    <select >  
        insert into user(userName,password,comment) values(#{userName},#{password},#{comment})  
    </insert>  

相关文章:

  • 2022-02-08
  • 2021-04-11
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案