有没有办法在mysql中的重复键更新插入中进行增量更新?
带有错误的示例:
insert into blah (user_id, prefix, email_id, field, source)
select user_id, substring(name, 1, 3), contact_email_id, 2, source from address_book
on duplicate key update source = source + values(source);
ERROR 1052 (23000): Column 'source' in field list is ambiguous