如何将excel文件添加到数据表。 [英] How to add an excel file to a datatable.

查看:86
本文介绍了如何将excel文件添加到数据表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想复制excel列,我想抛出数据集。我该如何阅读和复制。我想用c#做。



Excel文件:

名字姓氏类



Alex John 3



玛丽约翰4





数据表





姓名姓名



//列和行是空的。



我尝试过:



我想:



我想要Datatable:



姓名姓氏



Alex John 3



Mary John 4

解决方案

教程。

1. MySQL教程 [ ^ ]

2. C#教程 [ ^ ]



完成1和2之后再尝试 MySQL C#教程 [ ^ ]



然后学习如何使用C#读取excel文件

在C#中读取Excel文件(示例) [ ^ ]


使用MS Excel(xls / xlsx)使用MDAC和Oledb [ ^ ]。

I want to copy the excel columns and I want to throw the dataset. How can I read and copy. I want to do using c #.

Excel file:
Name Surname Class

Alex John 3

Mary John 4


Datatable


Name Surname Class

// column and row is empty.

What I have tried:

I want to:

I want to Datatable:

Name Surname Class

Alex John 3

Mary John 4

解决方案

Tutorials for you.
1. MySQL Tutorial[^]
2. C# Tutorial[^]

When you are done with 1 and 2 then try MySQL C# tutorial[^]

Then learn how to read excel file using C#
Read Excel File in C# (Example)[^]


Working with MS Excel(xls / xlsx) Using MDAC and Oledb[^].


这篇关于如何将excel文件添加到数据表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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