如何将数据从Excel表插入到数据库表中?

编程入门 行业动态 更新时间:2024-10-26 20:22:05
本文介绍了如何将数据从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表插入到数据库表中?

本文发布于:2023-10-22 23:17:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519020.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   数据库   数据   Excel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!