
{"id":56,"date":"2008-11-02T00:07:24","date_gmt":"2008-11-01T22:07:24","guid":{"rendered":"http:\/\/dasini.net\/blog\/?p=56"},"modified":"2008-11-02T00:07:24","modified_gmt":"2008-11-01T22:07:24","slug":"auto_increment-differences-myisam-innodb","status":"publish","type":"post","link":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/","title":{"rendered":"AUTO_INCREMENT: Diff\u00e9rences MyISAM &#8211; InnoDB"},"content":{"rendered":"<p style=\"margin-bottom: 0cm;\">La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d&rsquo;une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire.<\/p>\n<p style=\"margin-bottom: 0cm;\">Cependant, sont comportement n&rsquo;est pas tout \u00e0 fait identique sur une table MyISAM et sur une table InnoDB.<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> CREATE TABLE table_myisam (id INT AUTO_INCREMENT PRIMARY KEY) engine=MyISAM;<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SHOW CREATE TABLE table_myisam;<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><em>CREATE TABLE `table_myisam` (<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>`id` int(11) NOT NULL AUTO_INCREMENT,<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>PRIMARY KEY (`id`)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>) ENGINE=<strong>MyISAM <\/strong>DEFAULT CHARSET=latin1<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> INSERT INTO table_myisam (id) VALUES (NULL),(NULL),(NULL),(100);<\/p>\n<p style=\"margin-bottom: 0cm;\"><em>Query OK, 4 rows affected (0.02 sec)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>Records: 4  Duplicates: 0  Warnings: 0<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SELECT id FROM table_myisam;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| id  |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   1 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   2 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   3 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| 100 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SHOW CREATE TABLE table_myisam;<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><em>CREATE TABLE `table_myisam` (<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>`id` int(11) NOT NULL AUTO_INCREMENT,<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>PRIMARY KEY (`id`)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>) ENGINE=<strong>MyISAM AUTO_INCREMENT=101<\/strong> DEFAULT CHARSET=latin1<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> DELETE FROM table_myisam WHERE id=100;<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SELECT id FROM table_myisam;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| id |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  1 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  2 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  3 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SHOW CREATE TABLE table_myisam;<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><em>CREATE TABLE `table_myisam` (<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>`id` int(11) NOT NULL AUTO_INCREMENT,<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>PRIMARY KEY (`id`)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>) ENGINE=<strong>MyISAM AUTO_INCREMENT=101<\/strong> DEFAULT CHARSET=latin1<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> CREATE TABLE table_innodb (id INT AUTO_INCREMENT PRIMARY KEY) engine=InnoDB;<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SHOW CREATE TABLE table_innodb;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em><br \/>\n<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>CREATE TABLE `table_innodb` (<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>`id` int(11) NOT NULL AUTO_INCREMENT,<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>PRIMARY KEY (`id`)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>) ENGINE=<strong>InnoDB <\/strong>DEFAULT CHARSET=latin1<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> INSERT INTO table_innodb (id) VALUES (NULL),(NULL),(NULL),(100);<\/p>\n<p style=\"margin-bottom: 0cm;\"><em>Query OK, 4 rows affected (0.22 sec)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>Records: 4  Duplicates: 0  Warnings: 0<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SELECT id FROM table_innodb;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| id  |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   1 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   2 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   3 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| 100 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SHOW CREATE TABLE table_innodb;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em><br \/>\n<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>CREATE TABLE `table_innodb` (<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>`id` int(11) NOT NULL AUTO_INCREMENT,<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>PRIMARY KEY (`id`)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>) ENGINE=<strong>InnoDB AUTO_INCREMENT=101<\/strong> DEFAULT CHARSET=latin1<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> DELETE FROM table_innodb WHERE id=100;<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SELECT id FROM table_innodb;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| id |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  1 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  2 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  3 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SHOW CREATE TABLE table_innodb;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em><br \/>\n<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>CREATE TABLE `table_innodb` (<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>`id` int(11) NOT NULL AUTO_INCREMENT,<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>PRIMARY KEY (`id`)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>) ENGINE=<strong>InnoDB AUTO_INCREMENT=101<\/strong> DEFAULT CHARSET=latin1<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">\/*************************************\/<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">\/**** <strong>reboot du serveur MySQL<\/strong> ****\/<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">\/*************************************\/<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SHOW CREATE TABLE table_myisam;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em><br \/>\n<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>CREATE TABLE `table_myisam` (<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>`id` int(11) NOT NULL AUTO_INCREMENT,<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>PRIMARY KEY (`id`)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>) ENGINE=<strong>MyISAM AUTO_INCREMENT=101<\/strong> DEFAULT CHARSET=latin1<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> INSERT INTO table_myisam (id) VALUES (NULL);<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SELECT id FROM table_myisam;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em><br \/>\n<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| id  |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   1 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   2 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|   3 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| <strong><span style=\"color: #ff0000;\">101<\/span><\/strong> |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;&#8211;+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SHOW CREATE TABLE table_innodb;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em><br \/>\n<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>CREATE TABLE `table_innodb` (<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>`id` int(11) NOT NULL AUTO_INCREMENT,<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>PRIMARY KEY (`id`)<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>ENGINE=<strong>InnoDB AUTO_INCREMENT=4<\/strong> DEFAULT CHARSET=latin1<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> INSERT INTO table_innodb (id) VALUES (NULL);<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #808080;\">mysql&gt;<\/span> SELECT id FROM table_innodb;<\/p>\n<p style=\"margin-bottom: 0cm;\"><em><br \/>\n<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>| id |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  1 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  2 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  3 |<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>|  <span style=\"color: #ff0000;\"><strong>4<\/strong> <\/span>|<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\"><em>+&#8212;-+<\/em><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n","protected":false},"excerpt":{"rendered":"<p>La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d&rsquo;une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire.<\/p>\n<p>Cependant, sont comportement n&rsquo;est pas tout \u00e0 fait identique sur une table MyISAM et sur une table InnoDB.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8],"tags":[22,24,23,241],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-auto_increment","tag-innodb","tag-myisam","tag-mysql"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d&#039;une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire. Cependant, sont comportement n&#039;est pas tout \u00e0 fait identique sur une table MyISAM\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Olivier DASINI\"\/>\n\t<meta name=\"google-site-verification\" content=\"HN6x37mM2NBzUxcsZUKC8OY_DxAioI6oKazYPPNq02c\" \/>\n\t<meta name=\"keywords\" content=\"auto_increment,innodb,myisam,mysql\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights | Exploring Beyond the Limits of Knowledge\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"AUTO_INCREMENT: Diff\u00e9rences MyISAM \u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights\" \/>\n\t\t<meta property=\"og:description\" content=\"La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d&#039;une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire. Cependant, sont comportement n&#039;est pas tout \u00e0 fait identique sur une table MyISAM\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2008-11-01T22:07:24+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2008-11-01T22:07:24+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@freshdaz\" \/>\n\t\t<meta name=\"twitter:title\" content=\"AUTO_INCREMENT: Diff\u00e9rences MyISAM \u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights\" \/>\n\t\t<meta name=\"twitter:description\" content=\"La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d&#039;une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire. Cependant, sont comportement n&#039;est pas tout \u00e0 fait identique sur une table MyISAM\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@freshdaz\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#article\",\"name\":\"AUTO_INCREMENT: Diff\\u00e9rences MyISAM \\u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights\",\"headline\":\"AUTO_INCREMENT: Diff\\u00e9rences MyISAM &#8211; InnoDB\",\"author\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/author\\\/freshdaz\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d46da4fb4b99ea9ce527a93ce9b998a446577e42e1f132d8437235fa5b963636?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Olivier DASINI\"},\"datePublished\":\"2008-11-02T00:07:24+01:00\",\"dateModified\":\"2008-11-02T00:07:24+01:00\",\"inLanguage\":\"fr-FR\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#webpage\"},\"articleSection\":\"MySQL, auto_increment, InnoDB, MyISAM, MySQL, Fran\\u00e7ais\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dasini.net\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/category\\\/mysql\\\/#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/category\\\/mysql\\\/#listItem\",\"position\":2,\"name\":\"MySQL\",\"item\":\"https:\\\/\\\/dasini.net\\\/blog\\\/category\\\/mysql\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#listItem\",\"name\":\"AUTO_INCREMENT: Diff\\u00e9rences MyISAM &#8211; InnoDB\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#listItem\",\"position\":3,\"name\":\"AUTO_INCREMENT: Diff\\u00e9rences MyISAM &#8211; InnoDB\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/category\\\/mysql\\\/#listItem\",\"name\":\"MySQL\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/#person\",\"name\":\"Olivier DASINI\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d46da4fb4b99ea9ce527a93ce9b998a446577e42e1f132d8437235fa5b963636?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Olivier DASINI\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/author\\\/freshdaz\\\/#author\",\"url\":\"https:\\\/\\\/dasini.net\\\/blog\\\/author\\\/freshdaz\\\/\",\"name\":\"Olivier DASINI\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d46da4fb4b99ea9ce527a93ce9b998a446577e42e1f132d8437235fa5b963636?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Olivier DASINI\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#webpage\",\"url\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/\",\"name\":\"AUTO_INCREMENT: Diff\\u00e9rences MyISAM \\u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights\",\"description\":\"La clause, AUTO_INCREMENT, permet \\u00e0 MySQL de g\\u00e9n\\u00e9rer un entier unique pour tout nouvel enregistrement d'une table. Cette clause ne peut se mettre que sur les champs de type entier, index\\u00e9 et non nul. Elle est donc souvent utilis\\u00e9e comme cl\\u00e9 primaire. Cependant, sont comportement n'est pas tout \\u00e0 fait identique sur une table MyISAM\",\"inLanguage\":\"fr-FR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/2008\\\/11\\\/02\\\/auto_increment-differences-myisam-innodb\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/author\\\/freshdaz\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/author\\\/freshdaz\\\/#author\"},\"datePublished\":\"2008-11-02T00:07:24+01:00\",\"dateModified\":\"2008-11-02T00:07:24+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dasini.net\\\/blog\\\/\",\"name\":\"dasini.net - Diary of a MySQL expert\",\"description\":\"Exploring Beyond the Limits of Knowledge\",\"inLanguage\":\"fr-FR\",\"publisher\":{\"@id\":\"https:\\\/\\\/dasini.net\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"AUTO_INCREMENT: Diff\u00e9rences MyISAM \u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights","description":"La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d'une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire. Cependant, sont comportement n'est pas tout \u00e0 fait identique sur une table MyISAM","canonical_url":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/","robots":"max-image-preview:large","keywords":"auto_increment,innodb,myisam,mysql","webmasterTools":{"google-site-verification":"HN6x37mM2NBzUxcsZUKC8OY_DxAioI6oKazYPPNq02c","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#article","name":"AUTO_INCREMENT: Diff\u00e9rences MyISAM \u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights","headline":"AUTO_INCREMENT: Diff\u00e9rences MyISAM &#8211; InnoDB","author":{"@id":"https:\/\/dasini.net\/blog\/author\/freshdaz\/#author"},"publisher":{"@id":"https:\/\/dasini.net\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/d46da4fb4b99ea9ce527a93ce9b998a446577e42e1f132d8437235fa5b963636?s=96&d=mm&r=g","width":96,"height":96,"caption":"Olivier DASINI"},"datePublished":"2008-11-02T00:07:24+01:00","dateModified":"2008-11-02T00:07:24+01:00","inLanguage":"fr-FR","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#webpage"},"isPartOf":{"@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#webpage"},"articleSection":"MySQL, auto_increment, InnoDB, MyISAM, MySQL, Fran\u00e7ais"},{"@type":"BreadcrumbList","@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/dasini.net\/blog#listItem","position":1,"name":"Home","item":"https:\/\/dasini.net\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/dasini.net\/blog\/category\/mysql\/#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/dasini.net\/blog\/category\/mysql\/#listItem","position":2,"name":"MySQL","item":"https:\/\/dasini.net\/blog\/category\/mysql\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#listItem","name":"AUTO_INCREMENT: Diff\u00e9rences MyISAM &#8211; InnoDB"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dasini.net\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#listItem","position":3,"name":"AUTO_INCREMENT: Diff\u00e9rences MyISAM &#8211; InnoDB","previousItem":{"@type":"ListItem","@id":"https:\/\/dasini.net\/blog\/category\/mysql\/#listItem","name":"MySQL"}}]},{"@type":"Person","@id":"https:\/\/dasini.net\/blog\/#person","name":"Olivier DASINI","image":{"@type":"ImageObject","@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/d46da4fb4b99ea9ce527a93ce9b998a446577e42e1f132d8437235fa5b963636?s=96&d=mm&r=g","width":96,"height":96,"caption":"Olivier DASINI"}},{"@type":"Person","@id":"https:\/\/dasini.net\/blog\/author\/freshdaz\/#author","url":"https:\/\/dasini.net\/blog\/author\/freshdaz\/","name":"Olivier DASINI","image":{"@type":"ImageObject","@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d46da4fb4b99ea9ce527a93ce9b998a446577e42e1f132d8437235fa5b963636?s=96&d=mm&r=g","width":96,"height":96,"caption":"Olivier DASINI"}},{"@type":"WebPage","@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#webpage","url":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/","name":"AUTO_INCREMENT: Diff\u00e9rences MyISAM \u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights","description":"La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d'une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire. Cependant, sont comportement n'est pas tout \u00e0 fait identique sur une table MyISAM","inLanguage":"fr-FR","isPartOf":{"@id":"https:\/\/dasini.net\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/#breadcrumblist"},"author":{"@id":"https:\/\/dasini.net\/blog\/author\/freshdaz\/#author"},"creator":{"@id":"https:\/\/dasini.net\/blog\/author\/freshdaz\/#author"},"datePublished":"2008-11-02T00:07:24+01:00","dateModified":"2008-11-02T00:07:24+01:00"},{"@type":"WebSite","@id":"https:\/\/dasini.net\/blog\/#website","url":"https:\/\/dasini.net\/blog\/","name":"dasini.net - Diary of a MySQL expert","description":"Exploring Beyond the Limits of Knowledge","inLanguage":"fr-FR","publisher":{"@id":"https:\/\/dasini.net\/blog\/#person"}}]},"og:locale":"fr_FR","og:site_name":"Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights | Exploring Beyond the Limits of Knowledge","og:type":"article","og:title":"AUTO_INCREMENT: Diff\u00e9rences MyISAM \u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights","og:description":"La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d'une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire. Cependant, sont comportement n'est pas tout \u00e0 fait identique sur une table MyISAM","og:url":"https:\/\/dasini.net\/blog\/2008\/11\/02\/auto_increment-differences-myisam-innodb\/","article:published_time":"2008-11-01T22:07:24+00:00","article:modified_time":"2008-11-01T22:07:24+00:00","twitter:card":"summary","twitter:site":"@freshdaz","twitter:title":"AUTO_INCREMENT: Diff\u00e9rences MyISAM \u2013 InnoDB | Data Daz (dasini.net) - Data Systems, AI, and Real-World Insights","twitter:description":"La clause, AUTO_INCREMENT, permet \u00e0 MySQL de g\u00e9n\u00e9rer un entier unique pour tout nouvel enregistrement d'une table. Cette clause ne peut se mettre que sur les champs de type entier, index\u00e9 et non nul. Elle est donc souvent utilis\u00e9e comme cl\u00e9 primaire. Cependant, sont comportement n'est pas tout \u00e0 fait identique sur une table MyISAM","twitter:creator":"@freshdaz"},"aioseo_meta_data":{"post_id":"56","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 12:19:00","updated":"2025-06-24 09:38:32","seo_analyzer_scan_date":null},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9LfWW-U","jetpack-related-posts":[{"id":237,"url":"https:\/\/dasini.net\/blog\/2008\/11\/28\/les-nouveautes-de-mysql-51-part-15\/","url_meta":{"origin":56,"position":0},"title":"Les nouveaut\u00e9s de MySQL 5.1 &#8212; (part 1\/5)","author":"Olivier DASINI","date":"28 novembre 2008","format":false,"excerpt":"Que de chemin parcouru depuis ce 5 juillet 1999, date de lancement de MySQL 3.23.0. En plus des objectifs de simplicit\u00e9 d'administration, de hautes performances et de fiabilit\u00e9, se sont greff\u00e9es, au fur et \u00e0 mesure, les fonctionnalit\u00e9s les plus demand\u00e9es par les utilisateurs. La nouvelle version du SGBDR open-source\u2026","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":453,"url":"https:\/\/dasini.net\/blog\/2009\/02\/18\/optimisation-de-requetes-comprendre-loptimiseur-de-mysql\/","url_meta":{"origin":56,"position":1},"title":"Optimisation de requ\u00eates: comprendre l&rsquo;optimiseur de MySQL","author":"Olivier DASINI","date":"18 f\u00e9vrier 2009","format":false,"excerpt":"Le but de cet article est d'optimiser une simple requ\u00eate (SELECT avg(Population) FROM city GROUP BY CountryCode) et surtout de comprendre comment l'optimiseur proc\u00e8de, en \u00e9tudiant les r\u00e9sultats donn\u00e9s par les variables qui permettent de surveiller le serveur MySQL.","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1533,"url":"https:\/\/dasini.net\/blog\/2015\/11\/17\/30-mins-avec-json-en-mysql\/","url_meta":{"origin":56,"position":2},"title":"30 mins avec JSON en MySQL","author":"Olivier DASINI","date":"17 novembre 2015","format":false,"excerpt":"Comme vous le savez MySQL 5.7 est GA. Cette nouvelle mouture de la base de donn\u00e9es open source la plus populaire au monde a plus de 150 nouvelles fonctionnalit\u00e9s. L'une d'entre elle est un type de donn\u00e9es JSON natif ainsi que les fonctions JSON associ\u00e9es. Prenons 30 minutes pour voir\u2026","rel":"","context":"Dans &quot;json&quot;","block_context":{"text":"json","link":"https:\/\/dasini.net\/blog\/category\/json-fr\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":430,"url":"https:\/\/dasini.net\/blog\/2009\/01\/29\/influencer-loptimiseur-de-mysql\/","url_meta":{"origin":56,"position":3},"title":"Influencer l&rsquo;optimiseur de MySQL","author":"Olivier DASINI","date":"29 janvier 2009","format":false,"excerpt":"Il est possible d'influencer l'optimiseur pour qu'il choisisse d'utiliser ou de ne pas utiliser un index particulier. Les clauses \u00e0 placer dans votre requ\u00eate SELECT sont les suivantes: USE INDEX : utilise l'index pass\u00e9 en argument (MySQL ne l'utilisera pas si l'index est plus couteux qu'un full table scan) FORCE\u2026","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1557,"url":"https:\/\/dasini.net\/blog\/2015\/11\/30\/json-et-colonnes-generees-avec-mysql\/","url_meta":{"origin":56,"position":4},"title":"JSON et colonnes g\u00e9n\u00e9r\u00e9es avec MySQL","author":"Olivier DASINI","date":"30 novembre 2015","format":false,"excerpt":"Le 24 novembre dernier, lors du Forum PHP, Tomas Ulin (Oracle's MySQL VP of Engineering) a parl\u00e9 de l'utilisation de JSON dans MySQL \"MySQL 5.7 & JSON: New opportunities for developers\". Voici les r\u00e9ponses \u00e0 quelques questions qui m'ont \u00e9t\u00e9 pos\u00e9es: Comment se comporte mysqldump avec les colonnes g\u00e9n\u00e9r\u00e9es ?\u2026","rel":"","context":"Dans &quot;json&quot;","block_context":{"text":"json","link":"https:\/\/dasini.net\/blog\/category\/json-fr\/"},"img":{"alt_text":"JSON","src":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/json_icon.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":137,"url":"https:\/\/dasini.net\/blog\/2008\/11\/16\/enigme-order-by\/","url_meta":{"origin":56,"position":5},"title":"\u00c9nigme&#8230; order by","author":"Olivier DASINI","date":"16 novembre 2008","format":false,"excerpt":"Cela part d'un probl\u00e8me tout simple, trier les donn\u00e9es d'une table: mysql> SELECT id, technologie FROM enigme;","rel":"","context":"Dans &quot;MySQL&quot;","block_context":{"text":"MySQL","link":"https:\/\/dasini.net\/blog\/category\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":6,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}