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. Job 和 Cronjob 的使用

    Job负责处理任务,即仅执行一次的任务,它保证批处理任务的一个或多个Pod成功结束.而CronJob则就是在Job上加上了时间调度. Job 我们用Job这个资源对象来创建一个任务,我们定一个Job来 ...

  2. Batch - windows batch 常用命令(cheat sheet)

    原文地址:https://www.oschina.net/code/snippet_158297_4964 1 echo 和 @ 回显命令 @ #关闭单行回显 echo off #从下一行开始关闭回显 ...

  3. Js数据类型和运算符

    1.数据类型      原始类型:数值 字符串 布尔值: 复杂类型:对象:             数值(number)                      特殊的数值:NaN,NaN不等于任何 ...

  4. Servlet(Server Applet) 详解

    Java编写的服务器端程序.其主要功能在于交互式地浏览和修改数据,生成动态Web内容. Servlet的工作模式 客户端发送请求至服务器 服务器启动并调用Servlet,Servlet根据客户端请求生 ...

  5. 将map转为Object,支持 Date/Boolean

    import lombok.extern.log4j.Log4j2; import java.lang.reflect.Field; import java.lang.reflect.Method; ...

  6. thinkphp模块设计

    3.2发布版本自带了一个应用目录结构,并且带了一个默认的应用入口文件,方便部署和测试,默认的应用目录是Application(实际部署过程中可以随意设置). 通常情况下3.2无需使用多应用模式,因为大 ...

  7. vue-为什么子组件中的data选项必须是函数?

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  8. delphi编程实现为Windows窗口标题栏添加新按钮

    下面我们就讨论一下在delphi中如何给窗口的标题栏上添加新的按钮. 一.实现起来要定义以下过程: 1. 定义DrawCaptButton过程,这个过程的功能是在指定的位置画出按钮. 在过程中要使用w ...

  9. dcoker安装redis

    一.安装 搜索镜像 #docker search redis 拉取镜像 #docker pull redis 创建redis容器 #docker run -d --name redis --resta ...

  10. nlp总结

    中科院nlpir和海量分词(http://www.hylanda.com/)是收费的. hanlp:推荐基于CRF的模型的实现~~要看语料,很多常用词会被分错,所以需要词库支撑.目前最友好的开源工具包 ...