<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ni66ling</author_name>
  <author_url>https://blog.hatena.ne.jp/ni66ling/</author_url>
  <blog_title>どこでも見れるメモ帳</blog_title>
  <blog_url>https://ni66ling.hatenadiary.jp/</blog_url>
  <categories>
    <anon>mysql</anon>
    <anon>bash</anon>
  </categories>
  <description>はじめに 「カラム名だけが分かっており，それがどのテーブルに含まれるのかが不明」という状況が生じたのでその対処法をメモ． 全テーブルのカラム名を取得 $ mysql -u[ユーザ名] -p[パスワード] -D[データベース名] -e &quot;show tables;&quot; 2&gt;/dev/null \ | xargs -I{} bash -c &quot; echo -e '\n-----&lt;&lt; {} &gt;&gt;-----'; \ mysql -u[ユーザ名] -p[パスワード] -D[データベース名] -e 'desc {};' \ | perl -nle 'print [split(/\t/,\$_)]-&gt;[0]' \…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fni66ling.hatenadiary.jp%2Fentry%2F20130907%2F1378568036&quot; title=&quot;MySQLで全テーブルのカラム名取得 - どこでも見れるメモ帳&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>http://cdn-ak.f.st-hatena.com/images/fotolife/n/ni66ling/20160612/20160612010816.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-09-07 00:33:56</published>
  <title>MySQLで全テーブルのカラム名取得</title>
  <type>rich</type>
  <url>https://ni66ling.hatenadiary.jp/entry/20130907/1378568036</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
