错误代码: 1048 Column typeId cannot be null

1、错误描述

1 queries executed, 0 success, 1 errors, 0 warnings查询:CALL analyse_con(‘2015-01-01 00:00:00′,’2016-01-01 00:00:00’)错误代码: 1048Column ‘typeId’ cannot be null执行耗时 : 0 sec传送时间 : 0 sec总耗时: 0.015 sec2、错误原因

typeId字段为int(8),并且不为空,,但是插入数据时有null,导致报错

3、解决办法

拼接SQL语句时,加个判断:

ifnull(typeId,0) as typeId

版权声明:本文为博主原创文章,未经博主允许不得转载。

漫无目的的生活就像出海航行而没有指南针

错误代码: 1048 Column typeId cannot be null

相关文章:

你感兴趣的文章:

标签云: