mysql CSVでデータの吐き出し

SELECT
*
FROM
users
ORDER BY id
INTO OUTFILE
“/tmp/users.csv”
FIELDS
TERMINATED BY ‘,’
ENCLOSED BY ‘”‘
ESCAPED BY ‘\\’
LINES
TERMINATED BY ‘\r\n’
;

メモに