Export MySQL query to Excel file: Difference between revisions

Jump to navigation Jump to search
Line 87: Line 87:
* Cell contains return symbol should be replaced.
* Cell contains return symbol should be replaced.
Condition 2: If the rows count of MySQL query is less than 65,535 rows. You can use [https://zh-tw.libreoffice.org/discover/calc/ LibreOffice Calc] & MS Excel.
Condition 2: If the rows count of MySQL query is less than 65,535 rows. You can use [https://zh-tw.libreoffice.org/discover/calc/ LibreOffice Calc] & MS Excel.
Condition 3: Replace the return character. MySQL query syntax:
<pre>
REPLACE(REPLACE(REPLACE(column_name, '\r\n', ''), '\n', ''), '\r', '') AS column_name
</pre>


==== Step 2: Convert CSV to XLSX/XLS file format. ====
==== Step 2: Convert CSV to XLSX/XLS file format. ====

Navigation menu