如何将获取的数据从DB传递到Textfile [英] How to pass fetched data from DB to a Textfile

查看:82
本文介绍了如何将获取的数据从DB传递到Textfile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我将数据从数据库传递到文本文件



Hi guys im passing a data from database to textfile

SELECT * FROM TEST_Table 





如何使用存储过程将其保存到文本文件?

提前谢谢:)



How can i save it to a textfile using stored procedure?
Thanks in advance :)

推荐答案

从数据库中获取数据并循环遍历表并逐个写入文本文件。 br />


请通过以下链接:

如何:写入文本文件(C#编程指南) [ ^ ]
Fetch data from database and loop through the table and one by one write to the text file.

Please go through this link:
How to: Write to a Text File (C# Programming Guide)[^]


这篇关于如何将获取的数据从DB传递到Textfile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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