{"published":"2007-10-05 19:21:24","author_name":"umakoya","blog_url":"https://umakoya.hatenadiary.org/","blog_title":"umakoya\u306e\u30e1\u30e2","url":"https://umakoya.hatenadiary.org/entry/20071005/1158920484","provider_name":"Hatena Blog","image_url":null,"categories":["tips","\u958b\u767a"],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fumakoya.hatenadiary.org%2Fentry%2F20071005%2F1158920484\" title=\"SQL\u3067\u91cd\u8907\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa - umakoya\u306e\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>","author_url":"https://blog.hatena.ne.jp/umakoya/","title":"SQL\u3067\u91cd\u8907\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa","type":"rich","height":"190","description":"DB\u306e\u91cd\u8907\u3057\u3066\u3044\u308b\u884c\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3002 Perl Tips: MySQL \u3067\u3001\u91cd\u8907\u30ec\u30b3\u30fc\u30c9\u3092\u62bd\u51fa\u3059\u308b\u65b9\u6cd5 http://perltips.twinkle.cc/mysql/distinct.phpMySQL \uff08\u307e\u3041\u3001\u5358\u306a\u308b SQL\uff09\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e2d\u306e\u91cd\u8907\u30ec\u30b3\u30fc\u30c9\u3092\u9664\u3044\u3066\u691c\u7d22\u3059\u308b\u306b\u306f distinct \u3092\u4f7f\u3046\u306e\u304c\u5b9a\u77f3\u3060\u304c\u3001\u305d\u306e\u9006\u306b\u91cd\u8907\u30ec\u30b3\u30fc\u30c9\u306e\u307f\u62bd\u51fa\u30fb\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u306f\u3069\u306e\u3088\u3046\u306b\u3057\u305f\u3089\u3088\u3044\u306e\u3060\u308d\u3046\uff1f\u7d50\u8ad6\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u3088\u3044\u3002 select * from \u30c6\u30fc\u30d6\u30ebA where \u5217A in (select \u5217A from \u30c6\u30fc\u30d6\u30ebA group by \u5217A having count(*) > 1\u2026","width":"100%","version":"1.0"}