如何将数据从Excel表插入到数据库表中? [英] How to insert data from an excel sheet into a database table?

查看:1222
本文介绍了如何将数据从Excel表插入到数据库表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将excel表中的数据插入到teradata表中。
,我需要这样做使用MACRO。

I need to insert the data from an excel sheet into a teradata table. and I need this to be done using a MACRO.

我有一个Excel表格中的数据,如

I have data in an excel sheet like


COL1  COL2 COL3 COL4
1      2    3     4
2      5    8     10
.
.

所以

,我需要在excel表中保留一个按钮,并为该按钮分配一个宏,以便当我点击按钮,excel表格中的行应插入到数据库表中。

and i need to keep a button in the excel sheet and assign a macro to that button so that when i click the button the rows in the excel sheet should be inserted into a database table.

要求是将空的excel表发送给该人,他将填写在具有数据的工作表中,他单击excel中的按钮,并且数据必须插入到数据库表中。
我宁愿使用宏..

The requirement is that I will send the empty excel sheet to the person, he will fill in the sheet with the data and he clicks the button in the excel and the data has to be inserted into the database table. I would prefer doing this using a macro..

感谢所有。

推荐答案

查看链接使用vb / vba代码(对于marco)将数据从excel移动到sql server。

Have a look at this link for using vb/vba code (for the marco) to move data from excel to sql server.

这篇关于如何将数据从Excel表插入到数据库表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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