ASP.NET MVC 导出CSV文件.直接贴代码 /// <summary> /// ASP.NET MVC导出CSV文件Demo1 /// </summary> /// <returns></returns> public ActionResult ExportDemo1() { System.IO.MemoryStream output = new System.IO.MemoryStream(); System.IO.StreamWriter w
1.导出sql文件 mysqldump --column-statistics=0 -uusername -ppassword -hyour server ip --default-character-set=gbk your DB your table >F:\mysqldump\crawler_qichacha.sql 2.导入到数据库 source F:\mysqldump\crawler_qichacha.sql
导出TXT关键类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.IO; using System.Globalization; using System.Windows.Forms; namespace Demo { /// <summary> /// 导出TXT /// 罗旭成 /// 2014-4-1