我如何使用c#和.net 4.0将datatable导出到csv文件中
问题描述:
我想将一个表从数据库导出到csv文件.
我尝试了不同的代码,但无法做到.
有人可以帮我吗?
我想从表中获取数据并另存为csv文件.
我正在使用WPF,C#和.net 4.0
请帮助我.
Hi,
I want to export one table from database to csv file.
I have tried different code but can''t do it.
Can any one help me on this?
I want to get data from the table and save as csv file.
I am working on WPF, c# and .net 4.0
Please help me.
答
尝试检查以下链接: http://dotnetpulse.blogspot.com/2006/11/systemdata-export-table-to-csv-file.html
Hi,
try to check following link: http://dotnetpulse.blogspot.com/2006/11/systemdata-export-table-to-csv-file.html
请参阅 ^ ].此链接可能有帮助.
See here[^]. This link might help.