1048:Column 'xingzhi' cannot be null [ SQL语句 ] : INSERT INTO `mx_bill` (`status`,`balance`,`xingzhi`
2017-10-27 14:27
274 查看
1、错误原因
typeId字段为int(8),并且不为空,但是插入数据时有null,导致报错
2 解决方法
数据是不是null的地方去掉对勾.
typeId字段为int(8),并且不为空,但是插入数据时有null,导致报错
2 解决方法
数据是不是null的地方去掉对勾.
相关文章推荐
- SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'customer' cannot be null
- Error while creating db diagram:Cannot insert NULL into column diagram_id
- (1048, "Column 'user_id' cannot be null")
- 错误代码: 1048 Column 'typeId' cannot be null
- Mysql 5.6.30 insert null (ERROR 1048 (23000): Column 'ctime' cannot be null)
- Cannot insert the value NULL into column 'StuID', table 'NETRepository.dbo.S
- Default value for column cannot be changed to NULL
- SQL基础---SQL INSERT INTO 语句
- SQL INSERT INTO SELECT 语句
- 如何将sqlserver表中的数据导出sql语句或生成insert into语句 [转]
- SQL语句INSERT INTO
- 将sqlserver表中的数据导出sql语句或生成insert into语句
- Optional int parameter 'version' is present but cannot be translated into a null value due to being
- sql insertinto 多条语句
- [转自Oracle官方技术博客]对于一个非空字段定义的表导出后,再imp时候报错ORA-01400: cannot insert NULL into xxx 为何呢?
- 【转载】将sqlserver表中的数据导出sql语句或生成insert into语句
- 如何将sqlserver表中的数据导出sql语句或生成insert into语句
- 【报错】MySQLIntegrityConstraintViolationException:Column cannot be null
- java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
- select into from与insert into select区别详解,sql语句复制表