mysql -uroot -p -e"select doc_subject 文档标题, doc_expire_time 过期时间 from 表名 where doc_expire_time is not null order by doc_expire_time desc" > ./test.xls
Linux服务器查询SQL并导出EXCEL到服务器
本文介绍了一个MySQL查询语句,该语句从指定表中选择文档标题及过期时间,并按过期时间降序排列,最终将查询结果导出到Excel文件。
本文介绍了一个MySQL查询语句,该语句从指定表中选择文档标题及过期时间,并按过期时间降序排列,最终将查询结果导出到Excel文件。
mysql -uroot -p -e"select doc_subject 文档标题, doc_expire_time 过期时间 from 表名 where doc_expire_time is not null order by doc_expire_time desc" > ./test.xls

被折叠的 条评论
为什么被折叠?