当前位置:Gxlcms > 数据库问题 > insertSql语句中的trim标签的使用

insertSql语句中的trim标签的使用

时间:2021-07-01 10:21:17 帮助过:193人阅读


      <if test="batchNo != null">
        BATCH_NO,
      </if>
      <if test="seqNo != null">
        SEQ_NO,
      </if>
      <if test="contractNo != null">
        CONTRACT_NO,
      </if>
      <if test="prodType != null">
        PROD_TYPE,
      </if>
      <if test="discSubType != null">
        DISC_SUB_TYPE,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="batchNo != null">
        #{batchNo,jdbcType=VARCHAR},
      </if>
      <if test="seqNo != null">
        #{seqNo,jdbcType=VARCHAR},
      </if>
      <if test="contractNo != null">
        #{contractNo,jdbcType=VARCHAR},
      </if>
      <if test="prodType != null">
        #{prodType,jdbcType=VARCHAR},
      </if>
      <if test="discSubType != null">
        #{discSubType,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>

insertSql语句中的trim标签的使用

标签:prefix   har   rac   into   efi   标签   nbsp   style   ide   

人气教程排行