Export MySQL query to Excel file: Difference between revisions

Jump to navigation Jump to search
m
Line 13: Line 13:
=== Two steps conversion ex: MySQL query -> CSV file -> Excel file===
=== Two steps conversion ex: MySQL query -> CSV file -> Excel file===


Step 1: Export the MySQL query -> CSV/XLS file  
Step 1: Export the MySQL query -> CSV file  
* PHPExcel or MySQL client softwares
* PHPExcel or MySQL client softwares
* [http://dev.mysql.com/doc/refman/5.7/en/mysqldump-delimited-text.html MySQL :: MySQL 5.7 Reference Manual :: 8.4.3 Dumping Data in Delimited-Text Format with mysqldump]  
* [http://dev.mysql.com/doc/refman/5.7/en/mysqldump-delimited-text.html MySQL :: MySQL 5.7 Reference Manual :: 8.4.3 Dumping Data in Delimited-Text Format with mysqldump]  
Line 21: Line 21:
</pre>
</pre>


Step 2: Import CSV to XLSX or XLS file format.
Step 2: Import CSV to XLSX/XLS file format.
* MS Excel
* MS Excel
** [https://www.itg.ias.edu/content/how-import-csv-file-uses-utf-8-character-encoding-0 How to import a .csv file that uses UTF-8 character encoding | Information Technology Group]
** [https://www.itg.ias.edu/content/how-import-csv-file-uses-utf-8-character-encoding-0 How to import a .csv file that uses UTF-8 character encoding | Information Technology Group]

Navigation menu