- Tool: Navicat
- Database: MySQL
- Situation mirror: "Add a field" to a certain table. When adding the field "type" initially, "is not null" is not checked, as shown in Figure 1 below. Due to requirements, this field needs to be checked "not null". If you check directly on the basis of Figure 1, an error will be reported, as shown in Figure 2 below.
- Solution
删除该字段,重新设置
【MySQL】Invalid use of NULL value
Guess you like
Origin blog.csdn.net/weixin_47375144/article/details/130598000
Recommended
Ranking