You don't have to specify NOT NULL
on the column definition with AUTO_INCREMENT
.
You can leave it off, and MySQL will make the column NOT NULL
.
And if you specify NULL
in place of NOT NULL
, MySQL will accept the syntax, but it will ignore that, and make the column NOT NULL
anyway.