从Excel工作表将数据写回SQL [英] Writing data back to SQL from Excel sheet

查看:113
本文介绍了从Excel工作表将数据写回SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道可以将数据从SQL数据库中获取到excel表中,但是我正在寻找一种方法来使用excel编辑数据,编辑后将其写回到SQL数据库



似乎这不是excel中的一个功能,谷歌没有提出太多有用的。

解决方案

如果你想让Excel文件执行所有的工作(从DB中获取;操纵;更新DB),那么你可以看看ActiveX数据对象(ADO)。您可以在以下网站获得概述:



http://msdn.microsoft.com/en-us/library/ms680928(VS.85).aspx


I know it is possible to get data from a SQL database into an excel sheet, but i'm looking for a way to make it possible to edit the data in excel, and after editing, writing it back to the SQL database.

It appears this is not a function in excel, and google didn't come up with much usefull.

解决方案

If you want to have the Excel file do all of the work (retrieve from DB; manipulate; update DB) then you could look at ActiveX Data Objects (ADO). You can get an overview at:

http://msdn.microsoft.com/en-us/library/ms680928(VS.85).aspx

这篇关于从Excel工作表将数据写回SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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