当前位置:网站首页>kettle入门级操作第一篇(读取excel、输出excel)
kettle入门级操作第一篇(读取excel、输出excel)
2022-07-27 16:28:00 【黑暗料理界的扛把子】
目录
一、excel 读取并更改信息格式
1 读取信息
组件位置:转换-》输入-》Excel 输入
组件使用:
1)、文件
表格类型(引擎):Excel 97-2003 XLS (JXL) : 读取03版本excel;
Excel 2007 XLSX (Apache POI)、Excel 2007 XLSX (Apache POI Streaming) : 读取07版本excel

根据需求获取数据信息
- 读取本地单一Excel 。通过文件或目录,浏览本地文件,选择后增加即可。
- 读取本地某一类Excel。通过文件或目录,浏览excel所在文件,正则表达式,书写正则过滤条件,增加。或填写正则表达式(排除)来过滤。
- 从前面的步骤获取文件。点击勾选,并从填写哪个步骤、步骤的哪个字段。

2)、工作表
选取需要处理的sheet页即可。
部分人安装完成kettle,点击获取工作表名称时。会出现卡顿现象。可能是kettle的内存过小。

3)、错误处理
读取数据发生错误会直接停止,设置错误处理后错误数据会按照错误类型存储到制定目录文件或者直接跳过。

4)字段
获取 sheet 内的标题名称。标题名称必须严格按照excel sheet 顺序、名称罗列。
*****当预览数据成功看到数据则成功*****
二、数据更改
kettle 读取excel 可通过格式规范数值、时间类型的数据,处理方式为更改格式。

1、数值类型保留小数
根据需求在格式当中填写#.##(保留两位小数)等
2、时间类型规范格式
根据需求在格式当中填写 yyyy-MM-dd 等

边栏推荐
- asp. Net experience
- 【微信小程序】项目实战—抽签应用
- 一个经验
- During the interface test, connect to the database and back up, restore and verify the data source
- Some advice for NS2 beginner.
- Unity学习笔记——物体移动六种常见函数
- Performance analysis of continuous time systems (2) - second order system performance improvement methods PID, PR
- 连续时间系统的性能分析(2)-二阶系统性能改善方式PID,PR
- Redis annotation
- 如何用自动化测试搞垮团队
猜你喜欢

Introduction to assembly language (1)

An article allows you to master threads and thread pools, and also solves thread safety problems. Are you sure you want to take a look?
![[wechat applet] project practice - lottery application](/img/08/1e8643c95ad7c2661a76f9c3a0c57d.png)
[wechat applet] project practice - lottery application

Extension of regular expression

Kinect for unity3d - backgroundremovaldemo learning

Win10 tips (1) -- transfer desktop location

MongoDB学习笔记(1)——安装MongoDB及其相关配置

Performance analysis of continuous time system (1) - performance index and first and second order analysis of control system

Leetcode first day of question brushing

Unity显示Kinect捕获的镜头
随机推荐
新系统安装MySQL+SQLyog
PHP string operation
Kinect for unity3d - backgroundremovaldemo learning
【云图说】 第250期 初识华为云微服务引擎CSE
Unity display Kinect depth data
WPS turns off annoying advertisements
Selenium自动化测试面试题全家桶
mysql学习笔记(1)——变量
「测试新手百科」5 分钟快速上手Pytest 自动化测试框架
Questions about webservice
Ridis command notes
C # one method returns multiple values. Suggestions collection
Some advice for NS2 beginner.
Nodejs template engine EJS
CMD 命令
Interceptor interceptor
WinForm remove the close button in the upper right corner
汇编语言入门基础(1)
NPM, cnpm Taobao image
Power control