<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ebc_2in2crc</author_name>
  <author_url>https://blog.hatena.ne.jp/ebc_2in2crc/</author_url>
  <blog_title>全力で怠けたい</blog_title>
  <blog_url>https://ebc-2in2crc.hatenablog.jp/</blog_url>
  <categories>
    <anon>MySQL</anon>
  </categories>
  <description>SQL を記述した外部ファイルから実行する方法 SQL を記述したファイルを mysql コマンドの標準入力にリダイレクトする SQL を記述したファイルをパイプで mysql コマンドの標準入力に接続する source コマンドでSQL を記述したファイルを読み込む 参考サイト MySQL というか mysql コマンドで SQL を記述した外部ファイルから実行する方法をメモしておく。 mysql コマンドのバージョン。5.7 とか 5.6 でも同じやり方が使える。 $ mysql --version mysql Ver 8.0.27 for Linux on x86_64 (MySQL C…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Febc-2in2crc.hatenablog.jp%2Fentry%2F2021%2F11%2F19%2F220656&quot; title=&quot;MySQL で SQL を記述した外部ファイルから実行する方法。 - 全力で怠けたい&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>2021-11-19 22:06:56</published>
  <title>MySQL で SQL を記述した外部ファイルから実行する方法。</title>
  <type>rich</type>
  <url>https://ebc-2in2crc.hatenablog.jp/entry/2021/11/19/220656</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
