我试图通过查询插入数据:
insert into email (emailAddress, isPreferredEmail, customer_id, upload_id)
select cast(Email as char(100)) a,
TRUE,
(select id from customer c where c.dbvehregno=ChassisNo),
uploadid
from hyundaiindividualreport
where id in (select max(id)
from hyundaiindividualreport
where length(Email>=5)
and uploadid=900
group by ChassisNo);但它扔的是:
错误代码: 1292。截断不正确的双值
电子邮件表格结构:
Table: email
Columns:
email_Id bigint(20) AI PK,
emailAddress varchar(300) ,
isPreferredEmail bit(1) ,
updatedBy varchar(255) ,
customer_id bigint(20) ,
upload_id varchar(255)发布于 2018-07-23 11:37:43
这个表达式看起来不对:
length(Email >= 5)我想你是说:
length(Email) >= 5然而,令人惊讶的是,它会在MySQL中生成特定的错误。
https://stackoverflow.com/questions/51477840
复制相似问题