MySQL – Cannot insert NULL value in column, but I have a default value specified?

Use the DEFAULT keyword instead:

INSERT INTO users (TimeZoneId) VALUES (DEFAULT);

Leave a Comment