Per creare un file .CSV con una sintassi adatta per EXCEL puoi usare SQL di base:
SELECT * FROM mytable
INTO OUTFILE '/mytable.csv'
FIELDS ESCAPED BY '""'
TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n';
Consulta il manuale qui .
Per creare un file .CSV con una sintassi adatta per EXCEL puoi usare SQL di base:
SELECT * FROM mytable
INTO OUTFILE '/mytable.csv'
FIELDS ESCAPED BY '""'
TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n';
Consulta il manuale qui .