Field id doesnt have a default value, SQL1.sql line 1

Practice




Field id doesnt have a default value SQL1.sql 1
the MySQL error appears
even though id is definitely auto-increment in this table
Check whether this table uses a trigger that writes to another table with an unassigned default value for the id field
thanks, yes indeed there was an unassigned field in the other table
created: 2013-06-07
updated: 2026-03-09
378



Was this answer useful?
Choose a quick rating so we can improve the next answer for you.
How satisfied are you?


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Databases - MySql (Maria DB)"

Terms: Databases - MySql (Maria DB)