MySQLのSELECT文でcsvを出力する - Qiita

```sql SELECT * FROM users INTO OUTFILE '/tmp/users.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'; `...