Tag Archives: string(81) “SQLSTATE[HY000]: General error: 1364 Field ‘content’ doesn’t have a default value”

[Solved] string(81) “SQLSTATE[HY000]: General error: 1364 Field ‘content’ doesn’t have a default value”

reason

MySQL stipulates that default values are not allowed for blob, text, geometry and JSON data types. In this example, the content field is not set with a default value. After analysis, it is determined whether it is the reason for not null, so the content field is set to null

Solution:

Delete not null in the table creation statement