从Excel工作表中读取数据并存储在mysql表中 [英] read data from Excel sheet and store in mysql table

查看:219
本文介绍了从Excel工作表中读取数据并存储在mysql表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过浏览按钮从Excel工作表中读取数据并存储在mysql表中.
有人可以帮我吗?

I want to read data from Excel sheet and store in mysql table by using browse button.
Can any one help me?

推荐答案

像mjbohn所说,到目前为止你做了什么.我认为通过浏览按钮意味着您要上传.如果是这样,这就是您的工作.

1.上传文件
2.使用Excel对象模型在服务器上打开文件
3.编写SQL代码,将文件中所需的值插入db.
Like mjbohn says what have you done so far. I assume by a browse button you mean uploading. If so, here is what you do.

1. Upload the file
2. Open the file on the server using the Excel Object Model
3. Write SQL code to insert the values you want from the file into the db.


这篇关于从Excel工作表中读取数据并存储在mysql表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆