I’ve noticed something whilst setting up a database and want to confirm with all you smart people!
I have a column that needs to accept NULL values, so I checked off the NULL checkbox in the easy to use PHPMyAdmin interface. easy.
When I add a unique index, everything is good. But, when I change that unique index to a Primary key (also unique), it removes the NULL option.
Why is this, and is this expected behavior?
That is expected. As told in manual, PRIMARY KEY cannot accept NULL: