//http://www.cnblogs.com/mingmingruyuedlut/archive/2013/01/20/2849906.html C# 将List中的数据导入csv文件中 将数据保存至文件中,是一个比较常用的功能,数据源可以是多种形式,文件也可以是多种. 这里简单的介绍将List数据导入到CSV文件中的方法. 代码如下所示: Student类: public class Student { private string id; public string Id { get
之前有写过一点关于java实现写Excel文件的方法,但是现在看来,那种方式用起来不是太舒服,还很麻烦.所以最近又参考其他,就写了一个新版,用起来不要太爽. 代码不需要解释,惯例直接贴下来: public class ExcelExport implements Closeable { private static final Logger LOGGER = LoggerFactory.getLogger(ExcelExport.class); public static final Strin
mysql> select b.username,a.subject,a.money,FROM_UNIXTIME(a.ctime) from shop_pay a INNER JOIN common_member b on a.uid=b.uid where a.ctime>='1429428970' and a.ctime<='1429689355' and a.`status` = 2 into outfile '/tmp/test.xls';