当前位置:网站首页>Kettle实验 (三)
Kettle实验 (三)
2022-04-23 09:07:00 【风梳烟】
1. 利用kettle建立与数据库MySQL的链接
2. 为kettle创建一个MySQL资料库
3. 将数据通过我们所学的Excel表方法导入数据库
4. 将数据在KETTLE当中进行行转列(两种方法)
正式实验
(1) 在my个存放资料库的数据库data
(1) 在mysql中创建一个存放资料库的数据库data
(2).在kettle中,点击connect
(2).在kettle中,点击connect
(2).在kettle中,点击connect
连接数据库,并测试成功
注意这里的User name和password都是admin
在mysql中导入excel文件:
正式实验(二) 1.在mysql中导入excel文件:
1.在mysql中导入excel文件:
导入数据成功
用Excel导入数据
表输出
输出到数据库
执行
数据库中显示
行转列在MySQL中使用以下代码实现
行转列在MySQL中使用以下代码
SELECT
date,
max(case when name='小说' then scount else 0 end) 小说,
max(case when name='微信' then scount else 0 end) 微信
from hang
group by date
版权声明
本文为[风梳烟]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_56814370/article/details/123447276
边栏推荐
- Mini - exercice MySQL (seulement pour les débutants, pas pour les non - débutants)
- EmuElec 编译总结
- Four pictures to understand some basic usage of Matplotlib
- Latex mathematical formula
- Cadence process angle simulation, Monte Carlo simulation, PSRR
- Withholding agent
- NPM reports an error: operation not allowed, MKDIR 'C: \ program files \ node JS \ node_ cache _ cacache’
- Experimental report on analysis of overflow vulnerability of assembly language and reverse engineering stack
- Emuelec compilation summary
- L2-3 romantic silhouette (25 points)
猜你喜欢
Harbor enterprise image management system
Idea package jar file
Four pictures to understand some basic usage of Matplotlib
MATLAB入门资料
Project upload part
108. 将有序数组转换为二叉搜索树
The most concerned occupations after 00: civil servants ranked second. What was the first?
Enterprise wechat application authorization / silent login
Failed to download esp32 program, prompting timeout
[SQL Server fast track] view and cursor of database
随机推荐
A must see wechat applet development guide 1 - basic knowledge
Go language self-study series | initialization of golang structure
考研线性代数常见概念、问题总结
Multi view depth estimation by fusing single view depth probability with multi view geometry
Automatic differentiation and higher order derivative in deep learning framework
Flink同时读取mysql与pgsql程序会卡住且没有日志
Judgment on heap (25 points) two insertion methods
Summary of common concepts and problems of linear algebra in postgraduate entrance examination
To remember the composition ~ the pre order traversal of binary tree
PLC的点表(寄存器地址和点表定义)破解探测方案--方便工业互联网数据采集
Latex paper typesetting operation
Enterprise wechat application authorization / silent login
Go language self-study series | golang structure pointer
[in-depth good article] detailed explanation of Flink SQL streaming batch integration technology (I)
SAP 101K 411K 库存变化
计算神经网络推理时间的正确方法
Pctp test experience sharing
2022-04-22 openebs cloud native storage
npm报错 :operation not permitted, mkdir ‘C: \Program Files \node js \node_ cache _ cacache’
On array replication