当前位置:网站首页>Kettle 裁剪表详解(truncate)
Kettle 裁剪表详解(truncate)
2022-08-10 02:18:00 【鱼丸丶粗面】
1 概述
表输出 - 裁剪表 - 截图:
2 示例
2.1 基础数据准备
create table student_info (
sno number,
sname varchar2(30)
);
create table student_info_bak as select * from student_info;
insert into student_info(sno, sname) values(1, '张三');
insert into student_info(sno, sname) values(2, '李四');
insert into student_info(sno, sname) values(3, '王五');
commit;
- 演示:将 (源表 student_info) 的数据输出到 (目标表 student_info_bak)
- 不勾选 “裁剪表”:多次执行,会 重复插入
- 勾选 “裁剪表”:多次执行,不会 重复插入(原因:插入前 表已被 truncate )

表输入:(请按实际填写)
表输出:(请按实际填写)裁剪表 选项不勾选
运行这个转换:
运行结果:写入成功(student_info,student_info_bak 数据一致)
2.2 不勾选 “裁剪表”
再 运行一遍,数据重复!

2.3 勾选 “裁剪表”

再 运行一遍,数据不重复!(先 truncate 表,再 insert 数据)

边栏推荐
- 【红队】ATT&CK - 自启动 - 注册表运行键、启动文件夹
- liunx PS1 settings
- 2022.8.9考试游记总结
- Robust Real-time LiDAR-inertial Initialization (Real-time Robust LiDAR Inertial Initialization) Paper Learning
- 2022.8.9 Remainder of Exam Balance--1000 Question Solutions
- MySQL: Introduction to Logging System | Error Log | Query Log | Binary Log: Bin-log Data Recovery Practice | Slow Log Query
- 【二叉树-中等】687. 最长同值路径
- 2020.11.22考试哥德巴赫猜想题解
- QT模态对话框及非模态对话框学习
- ArcGIS Advanced (1) - Install ArcGIS Enterprise and create an sde library
猜你喜欢

“双枪”木马病毒的进化史
![[Kali Security Penetration Testing Practice Course] Chapter 9 Wireless Network Penetration](/img/7d/c621680ac73e2987f023a2e98e01df.png)
[Kali Security Penetration Testing Practice Course] Chapter 9 Wireless Network Penetration

Excel Advanced Drawing Skills 100 Lectures (23) - Countdown Counting in Excel

别再用 offset 和 limit 分页了,性能太差!

Example 047: Functions Swap Variables

【Kali安全渗透测试实践教程】第7章 权限提升

数据治理(五):元数据管理

web crawler error
![[Kali Security Penetration Testing Practice Tutorial] Chapter 6 Password Attack](/img/ac/e944d81afc741c38dc775d71dc9014.png)
[Kali Security Penetration Testing Practice Tutorial] Chapter 6 Password Attack

实例047:函数交换变量
随机推荐
2022.8.9考试平衡的余数--1000题解
2022.8.8 Exam written in memory (memory)
【二叉树-中等】687. 最长同值路径
2022.8.9 Exam arrangement and transformation--1200 questions solution
Deep Learning (5) CNN Convolutional Neural Network
将信号与不同开始时间对齐
官宣出自己的博客啦
网路编程_调试accept
P1564 膜拜
Difference Between Data Mining and Data Warehousing
2022.8.9考试独特的投标拍卖--800题解
2022.8.8考试摄像师老马(photographer)题解
实例047:函数交换变量
Will signal with different start time alignment
web crawler error
2022 Top Net Cup Quals Reverse Partial writeup
The Evolutionary History of the "Double Gun" Trojan Horse Virus
what is eabi
6 common plugin recommendations in Pycharm
【二叉树-中等】508. 出现次数最多的子树元素和