MySQL

Error: Column cannot be Null, How do I modify a MySQL column to allow NULL?

Error: Column cannot be Null, How do I modify a MySQL column to allow NULL?

Solved: This happens because when inserting an new row and some columns are not mentioned in the INSERT query, they are filled up as NULL by default, or maybe you are actually inserting a value of NULL, but for this to work your column must be set to allow NULL, other wise it will crash,

Recent Posts