在 oracle 中更新查询
Update query in oracle
我需要将 table 封电子邮件中的所有 gmail.com 电子邮件 ID 更新为 yahoo.com。我有以下查询不起作用。有人可以帮忙吗?
update emails
set email = (select CONCAT(email, '@yahoo.com ') "email"
from emails )
where email like '%@gmail.com%'
试试这个查询
update emails
set email = REPLACE(email,'@gmail.com','@yahoo.com')
where email like '%@gmail.com%'
我需要将 table 封电子邮件中的所有 gmail.com 电子邮件 ID 更新为 yahoo.com。我有以下查询不起作用。有人可以帮忙吗?
update emails
set email = (select CONCAT(email, '@yahoo.com ') "email"
from emails )
where email like '%@gmail.com%'
试试这个查询
update emails
set email = REPLACE(email,'@gmail.com','@yahoo.com')
where email like '%@gmail.com%'