如何将特定数据库条目从MS-Access DB导出为.csv格式 [英] How to export a particular database entry from MS-Access DB to the .csv format

查看:96
本文介绍了如何将特定数据库条目从MS-Access DB导出为.csv格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我在导出数据库时遇到问题。我想导出一个数据库条目及其相应的文件,该文件是.rtf格式。我使用以下代码以.rtf格式导出文档:

Actually I have a problem exporting a database. I want to export a database entry with its corresponding document which is in the .rtf format. I was using the following code to export the document in the .rtf format:

private void export()
{
  if (saveFileDialog1.ShowDialog() == DialogResult.OK)
  {
    try
    {
      saveFileDialog1.Filter = "RTF Files|*.rtf";
      richTextBoxProcedure.SaveFile(saveFileDialog1.FileName,
        RichTextBoxStreamType.RichText);
    }
    catch (Exception ex)
    {
      MessageBox.Show(ex.Message);
    }
  }
}



如何从数据库导出特定数据库条目,我该怎么办?


What can I do in order to export a particular database entry from the database?

推荐答案

.CSV文件只是一个文本文件。这是最容易编写的文件!



CSV是逗号分隔值。您所要做的就是在您写入文件的每个字段之间写一个逗号。
A .CSV file is nothing but a text file. It's the easiest kind of file to write!

CSV is Comma Separated Values. All you have to do is write a comma out between each field you write to the file.


这篇关于如何将特定数据库条目从MS-Access DB导出为.csv格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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