select 列名 as 字段名 from openBowSet('MSDASQL.1','driver=Microsoft Excel Driver(*.xls);dbq=文件存放地址','select * from [Sheet1$]') sql 读取excel中的数据 注意:需要指定excel模板…
1.创建工程后,需要下载 EPPlus.dll 添加到工程中,这里有一个下载地址:https://download.csdn.net/download/myunity/10784634 2.下面仅实现读取Excel表格的列数据: using System; using System.Collections.Generic; using System.IO; using OfficeOpenXml; namespace ConsoleApplication1 { class Program { s…