从Excel插入,更新或删除sql数据库中的数据 [英] Insert, update or delete data in sql database from Excel

查看:107
本文介绍了从Excel插入,更新或删除sql数据库中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将数据从我的SQL Server 2016升级到Excel 2016没有问题,但我无法弄清楚如何从Excel更新或向我的数据库添加数据。


<有没有人知道是否可能?

解决方案

嗨ThomasRH,


怎么做您从SQL Server获取数据到Excel?通常,我认为您也可以使用相同的方式将数据从Excel设置为SQL Server。


此外,我建议您使用ADO Connection进行此操作。


请查看以下链接以获取更多信息。


https://support.microsoft.com/en-sg/help/321686/how-to-import-data-from-excel-to-sql-server


https:// stackoverflow.com/questions/3767879/insert-data-from-excel-into-sql-db


https://stackoverflow.com/questions/32184673/inserting-values-into-sql-server-table-via-vba


最好的问候,


Terry


I have no problem getting data from my SQL Server 2016 to my Excel 2016, but what I cannot figure out is how to update or add data to my database from Excel.

Does anyone know if it is possible?

解决方案

Hi ThomasRH,

How do you get data from SQL Server to Excel? Usually, I think you could use the same way to set data from Excel to SQL Server too.

Besides, I suggest you do it with ADO Connection.

Please check below links for more information.

https://support.microsoft.com/en-sg/help/321686/how-to-import-data-from-excel-to-sql-server

https://stackoverflow.com/questions/3767879/insert-data-from-excel-into-sql-db

https://stackoverflow.com/questions/32184673/inserting-values-into-sql-server-table-via-vba

Best Regards,

Terry


这篇关于从Excel插入,更新或删除sql数据库中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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