错误代码: 1364 Field ‘password‘ doesn‘t have a default value

简介: 错误代码: 1364 Field ‘password‘ doesn‘t have a default value

今天编写代码时,遇到这个问题,后来查看表的结构发现password这个值是非空的

所以在定义sql时不能只输入一个username的值,要把所有非空的值都输入

相关文章
|
XML 关系型数据库 MySQL
【MySQL异常】ExecutorException: Error getting generated key or setting result to parameter object
【MySQL异常】ExecutorException: Error getting generated key or setting result to parameter object
493 0
|
5月前
解决Flutter报错The named parameter |method ‘xxxx‘ isn‘t defined.
解决Flutter报错The named parameter |method ‘xxxx‘ isn‘t defined.
206 3
|
8月前
|
数据库
Field ‘xxx‘ doesn‘t have a default value
Field ‘xxx‘ doesn‘t have a default value
70 0
|
关系型数据库 MySQL Linux
SQLSTATE[HY000]: General error: 1364 Field ‘xxx’ doesn't have a default value 解决办法
SQLSTATE[HY000]: General error: 1364 Field ‘xxx’ doesn't have a default value 解决办法
1892 0
|
数据库
Field ‘id‘ doesn‘t have a default value
Field ‘id‘ doesn‘t have a default value
180 0
|
SQL 关系型数据库 MySQL
MySQL - Expected one result (or null) to be returned by selectOne(), but found: 2
MySQL - Expected one result (or null) to be returned by selectOne(), but found: 2
767 0
|
关系型数据库 MySQL 数据库
当你遇到Error: ER_TRUNCATED_WRONG_VALUE_FOR_FIELD: Incorrect string value:
当你遇到Error: ER_TRUNCATED_WRONG_VALUE_FOR_FIELD: Incorrect string value: