当前位置:网站首页>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
边栏推荐
- Taxable income
- Chris LATTNER, father of llvm: the golden age of compilers
- Group Backpack
- [boutique] using dynamic agent to realize unified transaction management II
- Strength comparison vulnerability of PHP based on hash algorithm
- Brush classic topics
- Go language self-study series | golang method
- Latex mathematical formula
- 小程序报错:Cannot read property 'currentTarget' of undefined
- Search tree judgment (25 points)
猜你喜欢
[SQL Server fast track] view and cursor of database
调包求得每个样本的k个邻居
valgrind和kcachegrind使用运行分析
To remember the composition ~ the pre order traversal of binary tree
Redis Desktop Manager for Mac
MySQL小練習(僅適合初學者,非初學者勿進)
Matlab draw five-star red flag
PLC point table (register address and point table definition) cracking detection scheme -- convenient for industrial Internet data acquisition
Notes on xctf questions
PLC的点表(寄存器地址和点表定义)破解探测方案--方便工业互联网数据采集
随机推荐
单片机数码管秒表
L2-022 重排链表 (25 分)(map+结构体模拟)
Go language self-study series | golang nested structure
web页面如何渲染
Strength comparison vulnerability of PHP based on hash algorithm
Experimental report on analysis of overflow vulnerability of assembly language and reverse engineering stack
Illegal character in scheme name at index 0:
Data visualization: use Excel to make radar chart
【原创】使用System.Text.Json对Json字符串进行格式化
论文阅读《Multi-View Depth Estimation by Fusing Single-View Depth Probability with Multi-View Geometry》
小程序报错 :should have url attribute when using navigateTo, redirectTo or switchTab
[in-depth good article] detailed explanation of Flink SQL streaming batch integration technology (I)
Flink SQL realizes the integration of stream and batch
Star Trek's strong attack opens the dream linkage between metacosmic virtual reality
Flink reads MySQL and PgSQL at the same time, and the program will get stuck without logs
npm ERR! network
OpenCV中的图像处理 —— 轮廓入门+轮廓特征
How to protect open source projects from supply chain attacks - Security Design (1)
Share the office and improve the settled experience
Emuelec compilation summary