{"blog_url":"https://chaika.hatenablog.com/","url":"https://chaika.hatenablog.com/entry/2019/02/20/123000","provider_url":"https://hatena.blog","image_url":"https://images-fe.ssl-images-amazon.com/images/I/51dFJh3FKiL._SL160_.jpg","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2019%2F02%2F20%2F123000\" title=\"MySQL \u30b0\u30eb\u30fc\u30d7\u5316\u3057\u305f\u6761\u4ef6\u3067\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u524a\u9664 / \u5909\u66f4\u306b\u30cf\u30de\u308b - \u304b\u3082\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"MySQL \u30b0\u30eb\u30fc\u30d7\u5316\u3057\u305f\u6761\u4ef6\u3067\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u524a\u9664 / \u5909\u66f4\u306b\u30cf\u30de\u308b","type":"rich","published":"2019-02-20 12:30:00","description":"\u30c6\u30fc\u30d6\u30eb table_a id name typeID 1 \u661f\u5bae\u3044\u3061\u3054 1 2 \u9727\u77e2\u3042\u304a\u3044 2 3 \u7d2b\u5439\u862d 3 4 \u5927\u7a7a\u3042\u304b\u308a 1 table_a\u306etypeID\u30ab\u30e9\u30e0\u306e\u30c7\u30fc\u30bf\u304c\u91cd\u8907\u3057\u3066\u308b\u30ec\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3057\u3066\u6b21\u306e\u3088\u3046\u306aSQL\u3092\u767a\u884c\u3057\u307e\u3057\u305f\u3002 DELETE FROM table_a WHERE typeID IN ( SELECT typeID FROM table_a GROUP BY typeID HAVING COUNT(*) >= 2 ); You can't specify target table 'table_a' for update in FROM clause\u3068\u3044\u3046\u30a8\u30e9\u30fc\u2026","version":"1.0","author_name":"kikiki-kiki","width":"100%","blog_title":"\u304b\u3082\u30e1\u30e2","categories":["MySQL"],"author_url":"https://blog.hatena.ne.jp/kikiki-kiki/","height":"190"}