{"blog_url":"https://techblog.kayac.com/","type":"rich","height":"190","url":"https://techblog.kayac.com/mysql-duplicate-entry-error.html","categories":["error","mysql"],"width":"100%","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","published":"2008-12-15 14:00:00","author_name":"kayactech","image_url":null,"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.kayac.com%2Fmysql-duplicate-entry-error.html\" title=\"MySQL\u306eauto_increment\u3067Duplicate entry\u3068\u3044\u308f\u308c\u305f\u3068\u304d\u306b\u7591\u3046\u3053\u3068 - KAYAC Engineers&#39; Blog\" 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\u306eauto_increment\u3067Duplicate entry\u3068\u3044\u308f\u308c\u305f\u3068\u304d\u306b\u7591\u3046\u3053\u3068","blog_title":"KAYAC Engineers' Blog","author_url":"https://blog.hatena.ne.jp/kayactech/","description":"\u3053\u306a\u3044\u3060MySQL\u3067\u3061\u3087\u3063\u3068\u73cd\u3057\u3044\u30a8\u30e9\u30fc\u51fa\u3066\u3044\u305f\u306e\u3067\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 Duplicate entry 'nnnnnnn' for key 1 \u767a\u884c\u3057\u305fSQL\u306f\u300cid auto_increment\u300d\u6307\u5b9a\u306e\u3055\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066id\u3092\u6307\u5b9a\u305b\u305a\u5024\u3092\u8ffd\u52a0\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001id\u3092\u6307\u5b9a\u3057\u3066\u8ffd\u52a0\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001id\u3092\u6307\u5b9a\u305b\u305a\u8ffd\u52a0\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u4e0a\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 \u306f\u3058\u3081\u306f\u300cINT\u306e\u4e0a\u9650\uff1f\u300d\u3068\u3082\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u30017\u6841\u3067\u767a\u751f\u3059\u308b\u3068\u3082\u8003\u3048\u306b\u304f\u3044\u306e\u3067\u300cselect * from table where id = nnnnnnn;\u300d\u3068\u767a\u884c\u3057\u305f\u3068\u3053\u308d\u3001\u4eca\u5ea6\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 \u2026"}