{"version":"1.0","blog_url":"https://d4-1977.hatenablog.com/","title":" MySQL\u306e\u5916\u90e8\u53c2\u7167\u306b\u3064\u3044\u3066\uff083\uff09","blog_title":"\u3081\u3082\u5e16","provider_name":"Hatena Blog","published":"2007-07-11 06:13:43","author_url":"https://blog.hatena.ne.jp/d4-1977/","categories":["db"],"provider_url":"https://hatena.blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fd4-1977.hatenablog.com%2Fentry%2F20070711%2F1184102023\" title=\" MySQL\u306e\u5916\u90e8\u53c2\u7167\u306b\u3064\u3044\u3066\uff083\uff09 - \u3081\u3082\u5e16\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"height":"190","url":"https://d4-1977.hatenablog.com/entry/20070711/1184102023","type":"rich","author_name":"d4-1977","description":"\u3060\u3093\u3060\u3093\u3001\u8a71\u304c\u9577\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002 \u53c2\u7167\u5074\u3068\u3001\u88ab\u53c2\u7167\u5074\u3067\u578b\u3092\u305d\u308d\u3048\u305f\uff08\u5f53\u305f\u308a\u524d\uff1f\uff09 \u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u305f\u3089\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3057\u305f\uff08\u3053\u308c\u307e\u305f\u5f53\u305f\u308a\u524d\uff09 \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306a\u306e\u3067\u524a\u9664 \u5b9f\u884c\u3057\u3066\u307f\u305f\u3002\u3067\u304d\u305f\uff01 \u5b9f\u884c\u3057\u305fSQL ALTER TABLE people ADD FOREIGN KEY (team) REFERENCES teams (id) ON DELETE CASCADE ON UPDATE CASCADE; \u3055\u3066\u3001Ruby on Rails\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\u304b\u3002"}