SunRock

212 经验值

insert时,报错SQLSTATE[HY000]: General error: 1364 Field 'xxx' doesn't have a default value,可是我明明已经在my.cnf里面配置过了,not null的字段可以用空字符串,而且用sql语句插入数据也是可用的,为什么这里会报错呢