I found out about this along the way, but I can’t understand where I read or heard it, because I did not find anything on the Internet, but I remember that when upgrading from mysql4.x to mysql5.x, one of the necessary changes was that the auto-increment field for inserts should have changed from '' to NULL if it was enabled.
I know that it is not necessary to have it in the box, but only for the point of interest ...
Mysql 4.x will allow: INSERT INTO TABLE (table_id, name, location) VALUES ('', 'john', 'NY'); A.
But mysql 5.x should have: INSERT INTO TABLE (table_id, name, location) VALUES ( NULL , 'john', 'NY'); A.
I cannot find any information on mysql website to support this, but I know that it causes an error in mysql 5.x and knows that it worked with '' in 4.x, but where is this documented?
source
share