For at oprette en .CSV-fil med syntaks, der passer til EXCEL, kan du bruge grundlæggende SQL:
SELECT * FROM mytable
INTO OUTFILE '/mytable.csv'
FIELDS ESCAPED BY '""'
TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n';
Se manualen her .