码迷,mamicode.com
首页 > 其他好文 > 详细

kettle列转行运用

时间:2017-07-22 14:30:06      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:转行   运用   style   test   分享   alt   ges   span   tps   

运用场景:

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

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

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列转行运用

标签:转行   运用   style   test   分享   alt   ges   span   tps   

原文地址:http://www.cnblogs.com/youlangta/p/7221098.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!