<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryoff</author_name>
  <author_url>https://blog.hatena.ne.jp/ryoff/</author_url>
  <blog_title>雑想空間</blog_title>
  <blog_url>https://ryoff.hatenablog.com/</blog_url>
  <categories>
    <anon>mysql</anon>
  </categories>
  <description>mysqlのselectの結果をcsvで出したい場合。 よく、MySQL CSVファイル出力 - 雑想空間 SELECT * FROM table_name INTO OUTFILE &quot;/tmp/sample.csv&quot; FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '&quot;';こんな事やってたんですが、結果が数行とかの時は、remote上からscpなんかでfile移動するのが面倒でした。 コマンドライン上でカンマ区切りとかに mysql -uuser database -p -e 'SELECT id,a_id FROM test limit 10…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryoff.hatenablog.com%2Fentry%2F2013%2F01%2F07%2F145917&quot; title=&quot;MySQLのselect結果をコマンドライン上でカンマ区切りとかに - 雑想空間&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-01-07 14:59:17</published>
  <title>MySQLのselect結果をコマンドライン上でカンマ区切りとかに</title>
  <type>rich</type>
  <url>https://ryoff.hatenablog.com/entry/2013/01/07/145917</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
