我需要更新电子邮件表中的所有gmail.com电子邮件id到yahoo.com。下面的查询不起作用。有人能帮忙吗?
update emails
set email = (select CONCAT(email, '@yahoo.com ') "email"
from emails )
where email like '%@gmail.com%'发布于 2015-06-17 03:55:46
尝试这个查询
update emails
set email = REPLACE(email,'@gmail.com','@yahoo.com')
where email like '%@gmail.com%'https://stackoverflow.com/questions/30882032
复制相似问题