[英]How do i get data from excel using sql server
I have a table of workers on an excel sheet, with the fields (ID (worker identification number in the company), Name, Nickname, Date of Birth, Function (If you are a machine manager, if it is equipment management. ..), Importance (Each function has a different importance, if it is a machine operator has more importance than the receptionist)). 我在excel工作表上有一张工人表,其中包含以下字段(ID(公司中的工人标识号),名称,昵称,出生日期,功能(如果您是机器管理员,则是设备管理)。 ),重要性(如果是机器操作员,则每个功能都比接待员更重要)。
And what I want to do is to make a query that goes to excel sheet to draw 4 workers, returning the Name, Nickname and Function. 我想做的是查询到Excel工作表以绘制4个工作程序,并返回名称,昵称和函数。
The draw must be made by the importance of the worker. 必须根据工人的重要性来决定。
Those who have the highest degree of importance are more likely to be drawn. 重要程度最高的人更容易被吸引。
I found something interesting, maybe give it a look: https://support.microsoft.com/en-us/help/321686/how-to-import-data-from-excel-to-sql-server 我发现了一些有趣的东西,也许看看吧: https : //support.microsoft.com/en-us/help/321686/how-to-import-data-from-excel-to-sql-server
Never thought this would be possible. 从来没有想过这是可能的。 Well, the more you know.
好吧,您知道的越多。
what you are asking is not directly possible using query. 您所要询问的内容无法直接通过查询获得。 You have to use some third party library like iTextSharp or Aspose to do this.
您必须使用诸如iTextSharp或Aspose之类的第三方库来执行此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.