Generate CSV based on MySQL query from phpMyAdmin(根据来自 phpMyAdmin 的 MySQL 查询生成 CSV)
问题描述
我可以根据 MySQL 查询从 phpMyAdmin 生成 CSV 文件吗?
Can I generate a CSV file from phpMyAdmin based on a MySQL query?
例如,假设我查询了一个表以返回图像"一词的结果.然后我可以生成一个包含图像"一词的所有记录的 CSV 文件吗?
For example, let's say I queried a table to return results for the word "image". Could I then produce a CSV with all of the records containing the word "image"?
推荐答案
在 PhpMyAdmin 中,进入 SQL 选项卡并在其中输入您的查询.点击开始,然后点击结果底部的Export.您可以选择导出为 CSV.
In PhpMyAdmin, go into the SQL tab and enter your query in there. Hit go, then click Export at the bottom of your results. You can select to export as a CSV.
如果您有兴趣,这里是如何在没有 PMA 的情况下通过 SQL 进行操作:如何以CSV格式输出MySQL查询结果?
In case you're interested, here's how to do it via SQL without PMA: How to output MySQL query results in CSV format?
这篇关于根据来自 phpMyAdmin 的 MySQL 查询生成 CSV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:根据来自 phpMyAdmin 的 MySQL 查询生成 CSV
基础教程推荐
- 什么是 orradiag_<user>文件夹? 2022-01-01
- mysql选择动态行值作为列名,另一列作为值 2021-01-01
- 在 MySQL 中:如何将表名作为存储过程和/或函数参数传递? 2021-01-01
- 在多列上分布任意行 2021-01-01
- 表 './mysql/proc' 被标记为崩溃,应该修复 2022-01-01
- MySQL 中的类型:BigInt(20) 与 Int(20) 2021-01-01
- 如何根据该 XML 中的值更新 SQL 中的 XML 2021-01-01
- oracle区分大小写的原因? 2021-01-01
- 如何在 SQL 中将 Float 转换为 Varchar 2021-01-01
- 二进制文件到 SQL 数据库 Apache Camel 2021-01-01
