我需要将表格电子邮件中的所有gmail.com电子邮件ID更新到yahoo.com。我有以下查询,但不起作用。有人可以帮忙吗?
update emails
set email = (select CONCAT(email, '@yahoo.com ') "email"
from emails )
where email like '%@gmail.com%'
答案 0 :(得分:1)
尝试此查询
update emails
set email = REPLACE(email,'@gmail.com','@yahoo.com')
where email like '%@gmail.com%'