郁闷。txt导入mysql时提示成功(只是导入表中一个字段)。但是数据库就是没有。!!
在qs_resume_education表的uid字段里插入qs_resume里面的uid字段的值,并且满足qs_resume_educaion.pid=qs_resum...
在qs_resume_education表的uid字段里插入qs_resume里面的uid字段的值,并且满足qs_resume_educaion.pid=qs_resume.id。。
我的语句是:
UPDATE qs_resume_education SET uid=(select uid from qs_resume where qs_resume.id = qs_resume_education.pid);
但是报错:[Err] 1048 - Column 'uid' cannot be null
求解? 展开
我的语句是:
UPDATE qs_resume_education SET uid=(select uid from qs_resume where qs_resume.id = qs_resume_education.pid);
但是报错:[Err] 1048 - Column 'uid' cannot be null
求解? 展开
1个回答
展开全部
表的字段类型是不是不符,或者是数据间分割方式不正确
Column 'uid' cannot be null
错误:uid字段不能为空,qs_resume_education表uid字段有not null属性吧
UPDATE qs_resume_education SET uid=(select uid from qs_resume where qs_resume.id = qs_resume_education.pid);
select uid from qs_resume where qs_resume.id = qs_resume_education.pid结果确定有值?确定是一个值吗?
Column 'uid' cannot be null
错误:uid字段不能为空,qs_resume_education表uid字段有not null属性吧
UPDATE qs_resume_education SET uid=(select uid from qs_resume where qs_resume.id = qs_resume_education.pid);
select uid from qs_resume where qs_resume.id = qs_resume_education.pid结果确定有值?确定是一个值吗?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询