当前位置:网站首页>mysql统计账单信息(下):数据导入及查询
mysql统计账单信息(下):数据导入及查询
2022-07-01 12:42:00 【51CTO】
上一篇 mysql统计账单信息(上):mysql安装及客户端DBeaver连接使用介绍了mysql5.7的安装及客户端DBeaver的连接配置,本文接上一篇内容,介绍数据导入和查询导出。
一、excel导入
数据的导入可以是excel也可以是导库,这里先介绍excel导入方式
1.转csv
将xlsx格式转换为csv模式
2.转码
使用notepad打开并转码为UTF-8
3.导表
将excel导入数据库
下一步
选择移动对账单
下一步
报错:
该报错原因为无权限,授权即可
4.表查看
表数据查看
二、恢复数据库
本节演示restore数据库方式导入数据
选择要导入的sql文件,执行导入,导入前需要授权
执行导入
导入过程可能会涉及到max_allowed_packet数值调整,设置max_allowed_packet数值更大些
刷新查看
查看yd_csv表结构:
移动全量表明细:
三、移动查询语句
查询语句基于restore导入的库表,也可以是导入的excel,这里以前者为例
1.查询语句
2.查询结果
3.查询结果导出
选择输出的目录和文件名格式
导出如下:
边栏推荐
- Operator-1初识Operator
- Tencent always takes epoll, which is annoying
- System test UI test summary and questions (interview)
- logstash报错:Cannot reload pipeline, because the existing pipeline is not reloadable
- Vs code set code auto save
- How to play with the reading and writing operations of blocking sockets?
- Application of stack -- bracket matching problem
- Exploration and practice of inress in kubernetes
- 我选的热门专业,四年后成了“天坑”
- Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect
猜你喜欢
Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
I spent tens of thousands of dollars to learn and bring goods: I earned 3 yuan in three days, and the transaction depends on the bill
Operator-1初识Operator
项目部署,一点也不难!
Double linked list related operations
leetcode:241. Design priority for operation expression [DFS + Eval]
79. Word search [DFS + backtracking visit + traversal starting point]
leetcode:329. The longest incremental path in the matrix [DFS + cache + no backtracking + elegance]
Stack-------
Operations related to sequence table
随机推荐
Four years after graduation: work, resign, get married, buy a house
数字信号处理——线性相位型(Ⅱ、Ⅳ型)FIR滤波器设计(2)
What are the solutions for session sharing of highly paid programmers & interview questions series 118?
我选的热门专业,四年后成了“天坑”
redis探索之缓存一致性
I spent tens of thousands of dollars to learn and bring goods: I earned 3 yuan in three days, and the transaction depends on the bill
微信小程序 – 80个实用的微信小程序项目实例
基因检测,如何帮助患者对抗疾病?
Has anyone ever encountered this situation? When Oracle logminer is synchronized, the value of CLOB field is lost
Topic 1004: the story of cows (recursion)
be based on. NETCORE development blog project starblog - (13) add friendship link function
Teach you to complete the actual battle of image classification hand in hand -- Image Recognition Based on convolutional neural network
AI matting tool
How can genetic testing help patients fight disease?
SQLAlchemy在删除有外键约束的记录时,外键约束未起作用,何解?
QT 播放器之列表[通俗易懂]
First intention is the most important
题目 2612: 蓝桥杯2021年第十二届省赛真题-最少砝码(枚举找规律+递推)
R language builds a binary classification model based on H2O package: using H2O GBM build gradient hoist model GBM, use H2O AUC value of AUC calculation model
leetcode:329. 矩阵中的最长递增路径【dfs + cache + 无需回溯 + 优雅】