Skip to content

Kettle综合使用

1. 作业案例-MySQL

需求:把stu1的数据按id同步到stu2,stu2有相同id则更新数据

sql
create table stu1(id int,name varchar(20),age int);
create table stu2(id int,name varchar(20));
insert into stu1 values(1001,'zhangsan',20),(1002,'lisi',18), (1003,'wangwu',23);
insert into stu2 values(1001,'wukong');

实现思路: 通过表输入控件和更新/插入控件实现。 Alt text