当前位置:网站首页>Excel表格数据导入MySQL数据库
Excel表格数据导入MySQL数据库
2022-08-01 23:47:00 【m0_67392273】
公司业务需要把Excel表中的十多万条数据导入到数据库表中,这样比执行sql语句插入数据快多了
比如:想把如下图的(sanyi.xlsx)Excel表格导入MySQL表(tb_sanyi_client)中
1、将excel表格另存为csv文件,csv默认为逗号分隔
2、使用notepad++工具打开保存好的CSV文件,转换成utf-8格式
3、使用MySQL可视化界面navicat for mysql,找到对应的数据库表,然后右键—》导入向导
4、导入类型选择文本文件,点击下一步
5、找到上面保存好的csv文件,作为数据源
6、选择逗号分隔符
7、根据自己的需求定义,这里我选择的默认,下一步
8、检查一下源表和数据库表是否正确,直接下一步
9、这里关联Excel字段与数据库表字段对应起来,建立映射关系
10、直接下一步
11、点击开始,就可以把Excel表格导入到MySQL表中了,这时候需要等待一下就可以了
12、从图中可以看出,十几万条数据导入成功,没有错误的,最后点击关闭
13、点开对应的数据库表,可以看到数据已经导入
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- 在linux下MySQL的常用操作命令
- recursion: method calls itself
- ELK日志采集
- Chapter 19 Tips and Traps: Common Goofs for Novices
- 一道golang中关于iota的面试题
- Always use "noopener" or "noreferrer" for links that open in a new tab
- Quartus uses tcl files to quickly configure pins
- WEB安全基础 - - - XRAY使用
- [LeetCode304 Weekly Competition] Two questions about the base ring tree 6134. Find the closest node to the given two nodes, 6135. The longest cycle in the graph
- Chapter 12 End-User Task As Shell Scripts
猜你喜欢

洞见云原生微服务及微服务架构浅析
![[C language advanced] file operation (2)](/img/4d/49d9603aeed16f1600d69179477eb3.png)
[C language advanced] file operation (2)

A brief analysis of mobile APP security testing in software testing, shared by a third-party software testing agency in Beijing

分享一份接口测试项目(非常值得练手)

Share an interface test project (very worth practicing)

1个月写900多条用例,二线城市年薪33W+的测试经理能有多卷?

async和await用法介绍

Docker实践经验:Docker 上部署 mysql8 主从复制

DRF generating serialization class code

工件SSMwar exploded 部署工件时出错。请参阅服务器日志了解详细信息
随机推荐
Flink学习第五天——Flink可视化控制台依赖配置和界面介绍
如何更好的理解的和做好工作?
Architecture basic concept and nature of architecture
Artifact XXXwar exploded Artifact is being deployed, please wait...(已解决)
How do programmers solve online problems gracefully?
DRF generating serialization class code
numpy.hstack
@Resource和@Autowired的区别
numpy.around
ELK log collection
使用Ganache、web3.js和remix在私有链上部署并调用合约
Thymeleaf简介
UI自动化测试框架搭建-标记性能较差用例
Deep Learning Fundamentals - Numpy-based Recurrent Neural Network (RNN) implementation and backpropagation training
chrome copies the base64 data of an image
Calculate the angle of a line defined by two points
Flink Yarn Per Job - Yarn应用
recursion: method calls itself
Classical Literature Reading--DLO
sys_kill系统调用