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. ConcurrenHashMap介绍1.8 中为什么要用红黑树

    java8不是用红黑树来管理hashmap,而是在hash值相同的情况下(且重复数量大于8),用红黑树来管理数据. 红黑树相当于排序数据.可以自动的使用二分法进行定位.性能较高. 在Concurren ...

  2. Java中的接口是怎么实现的

    接口 使用关键字interface来定义一个接口,和类的定义方法很相似分为接口声明和接口体. interface  Printable { final int MAX = 100; void add( ...

  3. 泛型(Generic)接口

    泛型接口例子:一个学生有一个独一无二的ID,但是每个学生的姓名不一定是唯一的. class Program { static void Main(string[] args) { Student< ...

  4. awk 一 文本处理工具

    简介 awk 是逐行扫描文件(从第1行到最后一行),寻找含有目标文本的行: 如果匹配成功,则会在该行上执行用户想要的操作. 反之,则不对行做任何处理. awk 命令的基本格式为: awk [选项] ' ...

  5. 后缀自动机模板——不同子串个数p2408

    后缀自动机的入门博客 https://www.luogu.org/blog/Kesdiael3/hou-zhui-zi-dong-ji-yang-xie 有两种求法,分别对应了两种性质 #includ ...

  6. 暴力模拟——cf988E

    很简单的题,就是模拟一下 #include<bits/stdc++.h> using namespace std; #define ll long long ll n,a[],len; i ...

  7. NX二次开发-UFUN遍历函数UF_OBJ_cycle_all

    NX11+VS2013 #include <uf.h> #include <uf_obj.h> #include <uf_modl.h> #include < ...

  8. macOS cataline 10.15 升级后问题一览

    1. git无法使用.报错如下 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), m ...

  9. VS2010-MFC(Ribbon界面开发:为Ribbon Bar添加控件)

    转自:http://www.jizhuomi.com/software/253.html 前面一节为大家简单介绍了如何创建Ribbon样式的应用程序框架,本节教程就来初步讲讲怎样为Ribbon Bar ...

  10. Python 数据结构_堆栈

    目录 目录 堆栈 堆栈 堆栈是一个后进先出(LIFO)的数据结构. 堆栈这个数据结构可以用于处理大部分具有后进先出的特性的程序流 . 在堆栈中, push 和 pop 是常用术语: push: 意思是 ...