<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>IT</anon>
  </categories>
  <description>MySQLで困ったことが発生。 １．テーブル１、テーブル２を作成し ２．テーブル１からテーブル２を参照する外部キーを作成 ３．テーブル２を削除 ということをしようと思ったら、テーブル２が削除できない！ エラーメッセージを見ると ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails とある。どうも外部キー制約があるとテーブルを削除できないらしい。 しかし、外部キー制約を削除する方法がわからない。。 やむを得ずスキーマを削除して再作成。 スキーマやテストデータを簡単に復活させ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F20080519%2F1211955139&quot; title=&quot;RailsによるアジャイルWebアプリケーション開発 13章実装中 - 日々精進&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>2008-05-19 15:12:19</published>
  <title>RailsによるアジャイルWebアプリケーション開発 13章実装中</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/20080519/1211955139</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
