运用场景:

    元数据为:姓名,星期,工作小时

    需要转换成:姓名,周一,周二,周三,周四,周五,周六,周日

1.创建表

create table test02(
name varchar(50),--姓名
work_day varchar(10),--星期
work_time    INT--工作时间
);
insert into test02 values ('caohui','周一',8);
insert into test02 values ('caohui','周二',8);
insert into test02 values ('caohui','周三',8);
insert into test02 values ('caohui','周四',8);
insert into test02 values ('caohui','周五',10);
insert into test02 values ('caohui','周六',0);
insert into test02 values ('caohui','周日',0);

2.配置转换

  链接:

https://pan.baidu.com/s/1eR4uAgq

kettle行转列运用

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2021-07-21
  • 2021-07-14
猜你喜欢
  • 2021-05-20
  • 2021-04-12
  • 2022-12-23
  • 2021-06-28
  • 2021-10-16
  • 2021-08-22
相关资源
相似解决方案