insert all into T_TRAIN_MARSHALLING
<trim prefix="(GKEY," suffix=")" suffixOverrides=",">
<if test="ID != null and ID != '' ">ID,</if>
<if test="1 == 1">TRAIN_NUM,</if>
<if test="PRE_TRAIN_NUMBER != null and PRE_TRAIN_NUMBER != '' ">PRE_TRAIN_NUMBER,</if>
<if test="TRAIN__WAGON_INFORMATION_FK_GKEY != null and TRAIN__WAGON_INFORMATION_FK_GKEY != '' ">TRAIN__WAGON_INFORMATION_FK_GKEY,</if>
<if test="1 == 1">WAGON_NUMBER,</if>
<if test="WAGON_TYPE != null and WAGON_TYPE != '' ">WAGON_TYPE,</if>
<if test="CHANGE_LENGTH != null and CHANGE_LENGTH != '' ">CHANGE_LENGTH,</if>
<if test="SELF_WEIGHT != null and SELF_WEIGHT != '' ">SELF_WEIGHT,</if>
<if test="LOAD != null and LOAD != '' ">LOAD,</if>
<if test="NET_WEIGHT != null and NET_WEIGHT != '' ">NET_WEIGHT,</if>
<if test="Estimated_costs != null and Estimated_costs != '' ">Estimated_costs,</if>
<if test="RECEIVE_SEND != null and RECEIVE_SEND != '' ">RECEIVE_SEND,</if>
<if test="SEND_STATION != null and SEND_STATION != '' ">SEND_STATION,</if>
<if test="ARRIVAL_STATION != null and ARRIVAL_STATION != '' ">ARRIVAL_STATION,</if>
<if test="VARIETY != null and VARIETY != '' ">VARIETY,</if>
<if test="CARGO_TYPES != null and CARGO_TYPES != '' ">CARGO_TYPES,</if>
<if test="TICKET_SENDER != null and TICKET_SENDER != '' ">TICKET_SENDER,</if>
<if test="SENDER != null and SENDER != '' ">SENDER,</if>
<if test="TICKET_CONSIGNEE != null and TICKET_CONSIGNEE != '' ">TICKET_CONSIGNEE,</if>
<if test="CONSIGNEE != null and CONSIGNEE != '' ">CONSIGNEE,</if>
<if test="TICKET != null and TICKET != '' ">TICKET,</if>
<if test="BELONG != null and BELONG != '' ">BELONG,</if>
<if test="WEIGHT != null and WEIGHT != '' ">WEIGHT,</if>
<if test="ARMY != null and ARMY != '' ">ARMY,</if>
<if test="BACK != null and BACK != '' ">BACK,</if>
<if test="Code != null and Code != '' ">Code,</if>
<if test="WHOLE != null and WHOLE != '' ">WHOLE,</if>
<if test="NOTE != null and NOTE != '' ">NOTE,</if>
<if test="REMARK != null and REMARK != '' ">REMARK,</if>
<if test="CREATED != null and CREATED != '' ">CREATED,</if>
<if test="CREATOR != null and CREATOR != '' ">CREATOR,</if>
<if test="CHANGED != null and CHANGED != '' ">CHANGED,</if>
<if test="CHANGER != null and CHANGER != '' ">CHANGER,</if>
<if test="IS_DELETED != null and IS_DELETED != '' ">IS_DELETED</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">sys_guid(),
<if test="ID != null and ID != '' ">#{ID},</if>
<if test="1 == 1">#{TRAIN_NUM},</if>
<if test="PRE_TRAIN_NUMBER != null and PRE_TRAIN_NUMBER != '' ">#{PRE_TRAIN_NUMBER},</if>
<if test="TRAIN__WAGON_INFORMATION_FK_GKEY != null and TRAIN__WAGON_INFORMATION_FK_GKEY != '' ">#{TRAIN__WAGON_INFORMATION_FK_GKEY},</if>
<if test="1 == 1">#{WAGON_NUMBER},</if>
<if test="WAGON_TYPE != null and WAGON_TYPE != '' ">#{WAGON_TYPE},</if>
<if test="CHANGE_LENGTH != null and CHANGE_LENGTH != '' ">#{CHANGE_LENGTH},</if>
<if test="SELF_WEIGHT != null and SELF_WEIGHT != '' ">#{SELF_WEIGHT},</if>
<if test="LOAD != null and LOAD != '' ">#{LOAD},</if>
<if test="NET_WEIGHT != null and NET_WEIGHT != '' ">#{NET_WEIGHT},</if>
<if test="Estimated_costs != null and Estimated_costs != '' ">#{Estimated_costs},</if>
<if test="RECEIVE_SEND != null and RECEIVE_SEND != '' ">#{RECEIVE_SEND},</if>
<if test="SEND_STATION != null and SEND_STATION != '' ">#{SEND_STATION},</if>
<if test="ARRIVAL_STATION != null and ARRIVAL_STATION != '' ">#{ARRIVAL_STATION},</if>
<if test="VARIETY != null and VARIETY != '' ">#{VARIETY},</if>
<if test="CARGO_TYPES != null and CARGO_TYPES != '' ">#{CARGO_TYPES},</if>
<if test="TICKET_SENDER != null and TICKET_SENDER != '' ">#{TICKET_SENDER},</if>
<if test="SENDER != null and SENDER != '' ">#{SENDER},</if>
<if test="TICKET_CONSIGNEE != null and TICKET_CONSIGNEE != '' ">#{TICKET_CONSIGNEE},</if>
<if test="CONSIGNEE != null and CONSIGNEE != '' ">#{CONSIGNEE},</if>
<if test="TICKET != null and TICKET != '' ">#{TICKET},</if>
<if test="BELONG != null and BELONG != '' ">#{BELONG},</if>
<if test="WEIGHT != null and WEIGHT != '' ">#{WEIGHT},</if>
<if test="ARMY != null and ARMY != '' ">#{ARMY},</if>
<if test="BACK != null and BACK != '' ">#{BACK},</if>
<if test="Code != null and Code != '' ">#{Code},</if>
<if test="WHOLE != null and WHOLE != '' ">#{WHOLE},</if>
<if test="NOTE != null and NOTE != '' ">#{NOTE},</if>
<if test="REMARK != null and REMARK != '' ">#{REMARK},</if>
<if test="CREATED != null and CREATED != '' ">#{CREATED},</if>
<if test="CREATOR != null and CREATOR != '' ">#{CREATOR},</if>
<if test="CHANGED != null and CHANGED != '' ">#{CHANGED},</if>
<if test="CHANGER != null and CHANGER != '' ">#{CHANGER},</if>
<if test="IS_DELETED != null and IS_DELETED != '' ">#{IS_DELETED}</if>
</trim>
into T_TRAIN_WAGON_INFORMATION
<trim prefix="(GKEY," suffix=")" suffixOverrides=",">
<if test="1 == 1">WAGON_NUMBER,</if>
<if test="WAGON_TYPE != null and WAGON_TYPE != '' ">WAGON_TYPE,</if>
<if test="CHANGE_LENGTH != null and CHANGE_LENGTH != '' ">CHANGE_LENGTH,</if>
<if test="SELF_WEIGHT != null and SELF_WEIGHT != '' ">SELF_WEIGHT,</if>
<if test="LOAD != null and LOAD != '' ">LOAD,</if>
<if test="REMARK != null and REMARK != '' ">REMARK,</if>
<if test="CREATED != null and CREATED != '' ">CREATED,</if>
<if test="CREATOR != null and CREATOR != '' ">CREATOR,</if>
<if test="CHANGED != null and CHANGED != '' ">CHANGED,</if>
<if test="CHANGER != null and CHANGER != '' ">CHANGER,</if>
<if test="IS_DELETED != null and IS_DELETED != '' ">IS_DELETED</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">sys_guid(),
<if test="1 == 1">#{WAGON_NUMBER},</if>
<if test="WAGON_TYPE != null and WAGON_TYPE != '' ">#{WAGON_TYPE},</if>
<if test="CHANGE_LENGTH != null and CHANGE_LENGTH != '' ">#{CHANGE_LENGTH},</if>
<if test="SELF_WEIGHT != null and SELF_WEIGHT != '' ">#{SELF_WEIGHT},</if>
<if test="LOAD != null and LOAD != '' ">#{LOAD},</if>
<if test="REMARK != null and REMARK != '' ">#{REMARK},</if>
<if test="CREATED != null and CREATED != '' ">#{CREATED},</if>
<if test="CREATOR != null and CREATOR != '' ">#{CREATOR},</if>
<if test="CHANGED != null and CHANGED != '' ">#{CHANGED},</if>
<if test="CHANGER != null and CHANGER != '' ">#{CHANGER},</if>
<if test="IS_DELETED != null and IS_DELETED != '' ">#{IS_DELETED}</if>
</trim>

insert all into T_TRAIN_MARSHALLING
<trim prefix="(GKEY," suffix=")" suffixOverrides=",">
<if test="ID != null and ID != '' ">ID,</if>
<if test="1 == 1">TRAIN_NUM,</if>
<if test="PRE_TRAIN_NUMBER != null and PRE_TRAIN_NUMBER != '' ">PRE_TRAIN_NUMBER,</if>
<if test="TRAIN__WAGON_INFORMATION_FK_GKEY != null and TRAIN__WAGON_INFORMATION_FK_GKEY != '' ">TRAIN__WAGON_INFORMATION_FK_GKEY,</if>
<if test="1 == 1">WAGON_NUMBER,</if>
<if test="WAGON_TYPE != null and WAGON_TYPE != '' ">WAGON_TYPE,</if>
<if test="CHANGE_LENGTH != null and CHANGE_LENGTH != '' ">CHANGE_LENGTH,</if>
<if test="SELF_WEIGHT != null and SELF_WEIGHT != '' ">SELF_WEIGHT,</if>
<if test="LOAD != null and LOAD != '' ">LOAD,</if>
<if test="NET_WEIGHT != null and NET_WEIGHT != '' ">NET_WEIGHT,</if>
<if test="Estimated_costs != null and Estimated_costs != '' ">Estimated_costs,</if>
<if test="RECEIVE_SEND != null and RECEIVE_SEND != '' ">RECEIVE_SEND,</if>
<if test="SEND_STATION != null and SEND_STATION != '' ">SEND_STATION,</if>
<if test="ARRIVAL_STATION != null and ARRIVAL_STATION != '' ">ARRIVAL_STATION,</if>
<if test="VARIETY != null and VARIETY != '' ">VARIETY,</if>
<if test="CARGO_TYPES != null and CARGO_TYPES != '' ">CARGO_TYPES,</if>
<if test="TICKET_SENDER != null and TICKET_SENDER != '' ">TICKET_SENDER,</if>
<if test="SENDER != null and SENDER != '' ">SENDER,</if>
<if test="TICKET_CONSIGNEE != null and TICKET_CONSIGNEE != '' ">TICKET_CONSIGNEE,</if>
<if test="CONSIGNEE != null and CONSIGNEE != '' ">CONSIGNEE,</if>
<if test="TICKET != null and TICKET != '' ">TICKET,</if>
<if test="BELONG != null and BELONG != '' ">BELONG,</if>
<if test="WEIGHT != null and WEIGHT != '' ">WEIGHT,</if>
<if test="ARMY != null and ARMY != '' ">ARMY,</if>
<if test="BACK != null and BACK != '' ">BACK,</if>
<if test="Code != null and Code != '' ">Code,</if>
<if test="WHOLE != null and WHOLE != '' ">WHOLE,</if>
<if test="NOTE != null and NOTE != '' ">NOTE,</if>
<if test="REMARK != null and REMARK != '' ">REMARK,</if>
<if test="CREATED != null and CREATED != '' ">CREATED,</if>
<if test="CREATOR != null and CREATOR != '' ">CREATOR,</if>
<if test="CHANGED != null and CHANGED != '' ">CHANGED,</if>
<if test="CHANGER != null and CHANGER != '' ">CHANGER,</if>
<if test="IS_DELETED != null and IS_DELETED != '' ">IS_DELETED</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">sys_guid(),
<if test="ID != null and ID != '' ">#{ID},</if>
<if test="1 == 1">#{TRAIN_NUM},</if>
<if test="PRE_TRAIN_NUMBER != null and PRE_TRAIN_NUMBER != '' ">#{PRE_TRAIN_NUMBER},</if>
<if test="TRAIN__WAGON_INFORMATION_FK_GKEY != null and TRAIN__WAGON_INFORMATION_FK_GKEY != '' ">#{TRAIN__WAGON_INFORMATION_FK_GKEY},</if>
<if test="1 == 1">#{WAGON_NUMBER},</if>
<if test="WAGON_TYPE != null and WAGON_TYPE != '' ">#{WAGON_TYPE},</if>
<if test="CHANGE_LENGTH != null and CHANGE_LENGTH != '' ">#{CHANGE_LENGTH},</if>
<if test="SELF_WEIGHT != null and SELF_WEIGHT != '' ">#{SELF_WEIGHT},</if>
<if test="LOAD != null and LOAD != '' ">#{LOAD},</if>
<if test="NET_WEIGHT != null and NET_WEIGHT != '' ">#{NET_WEIGHT},</if>
<if test="Estimated_costs != null and Estimated_costs != '' ">#{Estimated_costs},</if>
<if test="RECEIVE_SEND != null and RECEIVE_SEND != '' ">#{RECEIVE_SEND},</if>
<if test="SEND_STATION != null and SEND_STATION != '' ">#{SEND_STATION},</if>
<if test="ARRIVAL_STATION != null and ARRIVAL_STATION != '' ">#{ARRIVAL_STATION},</if>
<if test="VARIETY != null and VARIETY != '' ">#{VARIETY},</if>
<if test="CARGO_TYPES != null and CARGO_TYPES != '' ">#{CARGO_TYPES},</if>
<if test="TICKET_SENDER != null and TICKET_SENDER != '' ">#{TICKET_SENDER},</if>
<if test="SENDER != null and SENDER != '' ">#{SENDER},</if>
<if test="TICKET_CONSIGNEE != null and TICKET_CONSIGNEE != '' ">#{TICKET_CONSIGNEE},</if>
<if test="CONSIGNEE != null and CONSIGNEE != '' ">#{CONSIGNEE},</if>
<if test="TICKET != null and TICKET != '' ">#{TICKET},</if>
<if test="BELONG != null and BELONG != '' ">#{BELONG},</if>
<if test="WEIGHT != null and WEIGHT != '' ">#{WEIGHT},</if>
<if test="ARMY != null and ARMY != '' ">#{ARMY},</if>
<if test="BACK != null and BACK != '' ">#{BACK},</if>
<if test="Code != null and Code != '' ">#{Code},</if>
<if test="WHOLE != null and WHOLE != '' ">#{WHOLE},</if>
<if test="NOTE != null and NOTE != '' ">#{NOTE},</if>
<if test="REMARK != null and REMARK != '' ">#{REMARK},</if>
<if test="CREATED != null and CREATED != '' ">#{CREATED},</if>
<if test="CREATOR != null and CREATOR != '' ">#{CREATOR},</if>
<if test="CHANGED != null and CHANGED != '' ">#{CHANGED},</if>
<if test="CHANGER != null and CHANGER != '' ">#{CHANGER},</if>
<if test="IS_DELETED != null and IS_DELETED != '' ">#{IS_DELETED}</if>
</trim>
into T_TRAIN_WAGON_INFORMATION
<trim prefix="(GKEY," suffix=")" suffixOverrides=",">
<if test="1 == 1">WAGON_NUMBER,</if>
<if test="WAGON_TYPE != null and WAGON_TYPE != '' ">WAGON_TYPE,</if>
<if test="CHANGE_LENGTH != null and CHANGE_LENGTH != '' ">CHANGE_LENGTH,</if>
<if test="SELF_WEIGHT != null and SELF_WEIGHT != '' ">SELF_WEIGHT,</if>
<if test="LOAD != null and LOAD != '' ">LOAD,</if>
<if test="REMARK != null and REMARK != '' ">REMARK,</if>
<if test="CREATED != null and CREATED != '' ">CREATED,</if>
<if test="CREATOR != null and CREATOR != '' ">CREATOR,</if>
<if test="CHANGED != null and CHANGED != '' ">CHANGED,</if>
<if test="CHANGER != null and CHANGER != '' ">CHANGER,</if>
<if test="IS_DELETED != null and IS_DELETED != '' ">IS_DELETED</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">sys_guid(),
<if test="1 == 1">#{WAGON_NUMBER},</if>
<if test="WAGON_TYPE != null and WAGON_TYPE != '' ">#{WAGON_TYPE},</if>
<if test="CHANGE_LENGTH != null and CHANGE_LENGTH != '' ">#{CHANGE_LENGTH},</if>
<if test="SELF_WEIGHT != null and SELF_WEIGHT != '' ">#{SELF_WEIGHT},</if>
<if test="LOAD != null and LOAD != '' ">#{LOAD},</if>
<if test="REMARK != null and REMARK != '' ">#{REMARK},</if>
<if test="CREATED != null and CREATED != '' ">#{CREATED},</if>
<if test="CREATOR != null and CREATOR != '' ">#{CREATOR},</if>
<if test="CHANGED != null and CHANGED != '' ">#{CHANGED},</if>
<if test="CHANGER != null and CHANGER != '' ">#{CHANGER},</if>
<if test="IS_DELETED != null and IS_DELETED != '' ">#{IS_DELETED}</if>
</trim>

  

Oracle一条数据多表连插的更多相关文章

  1. jdbc如何锁定某一条数据或者表,不让别人操作?

    jdbc如何锁定某一条数据或者表,不让别人操作? 只有并发的时候才会有死锁,你要把多个涉及到这个表的地方检查一下,排除死锁可能. 为了避免修改冲突,所以我要锁定.请问该如何实现 答: 例如:selec ...

  2. 十几万条数据的表中,基于帝国cms 。自己亲身体验三种批量更新数据的方法,每一种的速度是什么样的

    需求是 上传Excel 读取里面的数据.根据Excel中某一个字段,与数据表中的一个字段的唯一性.然后把 Excel表中数据和数据库表中数据一次更改.本次测试一次更新31条数据. 本次测试基于帝国cm ...

  3. 解决 Oracle exp导出表数据时空表不能导出的问题

    一.不能导出空表的原因 1.Oracle11g默认对空表不分配segment,故使用exp导出Oracle11g数据库时,空表不会导出. 2.设置deferred_segment_creation 参 ...

  4. 使用SqlBulkCopy批量插入多条数据进入表中

    由于工作中项目需求结算一次生成一批相同批次号的数据插入一个表中,然后再通过另一页面展示出来,所以需要用到一次性插入一批数据,所以就采用了SqlBulkCopy插入一批数据 1 public stati ...

  5. mysql生成20万条数据(连表插入)

    创建一个存储过程 DELIMITER $$ -- 设置定界符为$$,与';'意思相同,防止相同符号产生冲突 USE `yunkc_base1`$$ -- 使用数据库 DROP PROCEDURE IF ...

  6. 给mysql一百万条数据的表添加索引

    直接alter table add index 添加索引,执行一个小时没反应,并且会导致锁表:故放弃该办法,最终解决办法如下: 一.打开mysql 命令行客户端 这里我们那可以看到导出的数据文件所存放 ...

  7. Python开发【笔记】:pymsyql 插入一条数据同时获取新插数据的自增id的两种方式

    一.通过cursor.lastrowid import pymysql.cursors # Connect to the database connection = pymysql.connect(h ...

  8. ORACLE中 大量数据插入表 SQL

    declare g_commit_count number; cursor cu1 is select gl_flexfields_pkg.get_description_sql(gcc.chart_ ...

  9. Oracle 多条数据转一行逗号隔开

    wm_concat   例: select wm_concat(市) from pa50 where apa132=省

随机推荐

  1. python 模拟按键模拟键盘按键按下放开

    python模拟按键 pip install pypiwin32安装库 import win32conimport win32apiimport time 导入 打个比方模拟A win32api.ke ...

  2. leetcode-158周赛-5225-最大相等频率

    题目描述: 方法: class Solution(object): def maxEqualFreq(self, A): count = collections.Counter() freqs = c ...

  3. Batch - 重定向符号Redirection >

    总结 Don't use a piping operator, which is what ">" Redirection is. 不要使用管道运算符,即“>”. Di ...

  4. 莫比乌斯反演+二维前缀和——hdu4746二刷

    第二次做这题,求前缀和的时候还是卡住了 fg函数的反演是可以直接用莫比乌斯基本代换式来代换的 #include<bits/stdc++.h> using namespace std; #d ...

  5. NTT数论变换

    数论变换NTT 前置知识 FFT:NTT的思想和FFT一样(FFT介绍) 概述 数论变换,即NTT(Number Theory Transformation?),是基于数论域的FFT,一般我们默认FF ...

  6. NX二次开发-创建直线(起点-向量方向-长度)UF_CURVE_create_line

    NX9+VS2012 #include <uf.h> #include <uf_curve.h> #include <uf_csys.h> #include < ...

  7. NX二次开发-UFUN编辑添加哪些图层UF_LAYER_edit_category_layer

    1 NX11+VS2013 2 3 #include <uf.h> 4 #include <uf_layer.h> 5 6 7 UF_initialize(); 8 9 //创 ...

  8. JVM内核-原理、诊断与优化学习笔记(十一):JVM字节码执行

    文章目录 javap javap 举个

  9. LaTeX+TexStudio安装与使用

    (很多杂志期刊接受LaTeX电子版时会提供自己的模板,只要使用他们的模板即可完美地展现在对应的刊物中) 0x00. 优点 丰富易用的数学公式和特殊符号: 容易生成图表编号.引用.交叉引用.目录: 可以 ...

  10. 【POJ】1797 Heavy Transportation

    题目链接:http://poj.org/problem?id=1797 题意:n个城镇,m条路上能承载的最大重量.现在问你从1到n的最大承重量. 题解:spfa的变体. 假设当前1->当前点的承 ...