如何在excel中导出数据库记录 [英] how to export the database records in excel
本文介绍了如何在excel中导出数据库记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在数据库记录中如下(表名反馈)
Facid名称BFQ1 BFQ2 BFQ3 BFQ4 BFQ5 CFQ1 CFQ2 CFQ3 CFQ4 CFQ5
1 A 5 4 3 2 1 2 3 4 5 1
2 B 4 2 1 2 5 5 4 3 2 1
3 C 4 3 2 1 5 4 2 3 1 5
4 D 5 4 3 2 1 5 4 2 3 1
i想要将上述数据库记录导出到excel中。
我怎么能在asp.net上用C#做。
如何编写代码
解决方案
阅读以下内容: http://stackoverflow.com/questions/8207869/how-to-export-datatable-to-excel-in-c-sharp [ ^ ]
In database records as follows (Table name Feedback)
Facid Name BFQ1 BFQ2 BFQ3 BFQ4 BFQ5 CFQ1 CFQ2 CFQ3 CFQ4 CFQ5
1 A 5 4 3 2 1 2 3 4 5 1
2 B 4 2 1 2 5 5 4 3 2 1
3 C 4 3 2 1 5 4 2 3 1 5
4 D 5 4 3 2 1 5 4 2 3 1
i want to export the above database records into excel.
for that how can i do in asp.net using C#.
how can i write the code
解决方案
Read the following : http://stackoverflow.com/questions/8207869/how-to-export-datatable-to-excel-in-c-sharp[^]
这篇关于如何在excel中导出数据库记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文