mysqlã®selectã®çµæãcsvã§åºãããå ´åã ããã MySQL CSVãã¡ã¤ã«åºå - éæ³ç©ºé SELECT * FROM table_name INTO OUTFILE "/tmp/sample.csv" FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"';ãããªäºãã£ã¦ããã§ãããçµæãæ°è¡ã¨ãã®æã¯ãremoteä¸ããscpãªããã§file移åããã®ãé¢åã§ããã ã³ãã³ãã©ã¤ã³ä¸ã§ã«ã³ãåºåãã¨ãã« mysql -uuser database -p -e 'SELECT id,a_id FROM test limit 10' -B | sed -e 's/\t/,/g' id,a_id 1,2 3,4 2,16 7,17 5,24 4,25 6,26 8,28 20,29ãããªæãã§ãã³ãã³ãã©ã¤ã³ä¸ã§ã«ã³ãåºåãã§
{{#tags}}- {{label}}
{{/tags}}