<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                #### 新增一條數據 Mapper接口 ``` //插入數據 - 可修改返回值類型 void insertWell(Map<String,Object> param)throws Exception; ``` Mapper.xml ``` <!--插入數據--> <insert id="insertWell" parameterType="java.util.HashMap"> INSERT INTO RTOC_ARTIFICIAL_MONTH <trim prefix="(" suffix=")" suffixOverrides=","> <if test="ARTIFICIAL_MONTH_ID!=null and ARTIFICIAL_MONTH_ID!=''">ARTIFICIAL_MONTH_ID,</if> <!--oracle日期轉換--> <if test="STARTDRILL_TIME!=null and STARTDRILL_TIME!=''"> STARTDRILL_TIME, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="ARTIFICIAL_MONTH_ID!=null and ARTIFICIAL_MONTH_ID!=''">#{ARTIFICIAL_MONTH_ID},</if> <!--oracle日期轉換--> <if test="STARTDRILL_TIME!=null and STARTDRILL_TIME!=''"> to_date(#{STARTDRILL_TIME} , 'yyyy-mm-dd hh24:mi:ss'), </if> </trim> </insert> ``` #### foreach字段添加 ``` <insert id="insert" parameterType="hashmap"> insert into ${_tableName} ( <foreach collection="data" index="colName" item="colValue" separator=",">${colName}</foreach> ) values ( <foreach collection="data" index="colName" item="colValue" separator=",">#{colValue}</foreach> ) </insert> ``` #### Mybatis批量插入到oracle ``` void insertOracle(List<Map<String,Object>> wellInfos); ``` ``` <insert id="insertOracle" parameterType="java.util.Map" useGeneratedKeys="false"> INSERT ALL <foreach item="item" index="index" collection="list"> INTO RTOC_WELLBOREID_RTDDATA ( ID, WELL_ID, WELLBORE_ID, WELL_DEPTH, TIME, TIMESTAMP, DATA ) VALUES ( #{item.id}, #{item.wellId}, #{item.wellboreId}, #{item.wellDepth}, #{item.time}, #{item.timeStamp}, #{item.data} ) </foreach> SELECT 1 FROM DUAL </insert> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看