excel表格例怎样导入数据库
相关话题
excel里面形形色色的功能可以帮助用户进行编辑处理数据,可能有些初学者并不太会使用比较常用的导入数据库技巧,接下来是小编为大家带来的excel表格数据导入数据库的方法,欢迎大家来到学习。
excel表格数据导入数据库的方法步骤
1:首先我们需要在mysql管理工具上面新建一个表,也可以用mysql命令创建,表建立完成之后,你需要将表中的字段名字告诉给填写excel表的人员.

2:打开excel表,按照程序提供的字段填写相应的数据.此时注意下面几点:名字(我用红色标示出来了)需要跟程序提供的一样,其他的描述,表头可以不写都行.

3:我使用的mysql管理工具是Navicat for MySQL,打开工具,选择表所在的数据库,然后点击数据库名字,右键数据,出来下拉菜单选择import wizard ,有汉化版本的更明确.弹出一个选择界面,我们选择excel file文件


4:点击next(下一步),我们选择我们对应的excel文件就行,然后再下面选在我们的文件内容在哪一个sheet中,也就是你的内容写在excel什么地方,这点需要注意,也是关键的地方,我的内容在sheet3中,所以我选择sheet3 ,如图:

5:点击next (此步骤也是关键步骤),需要注意2点: 1:filed name row 就是你的字段所在excel中的位置,也就是第几行(简单办法,一般就是英文对应的那一列).2:first data row(从哪一行开始执行),数据从哪一行开始呢,我这里选择的是3,4.

6:点击next 我们选择 target table 目标对应的数据库,选择你要导入到哪个数据库中表中.

7:如果到上面一步没有问题的话,我们默认next到最后 就行了.然后打开表就能看到数据跟excel表中的一样.

猜你感兴趣:
1.excel怎么做数据库
2.如何将excel表导入数据库的方法
3.如何把excel导入数据库的方法
4.excel表格数据导入数据库的方法
5.excel表导入sql数据库的教程
excel表格例怎样导入数据库的评论条评论