我需要在 liquibase 中运行以下更新查询,但我不确定语法。任何人都可以帮忙吗:
update xyz.users
set email = (select CONCAT(username, '@gmail.com ') "email"
from xyz.users )
where email like '%@yahoo.com%' ;
最佳答案
试试这个
<update tableName="xyz.users">
<column name="email" valueComputed="(select CONCAT(username, '@gmail.com ')
from xyz.users)"/>
<where>email like '%@yahoo.com%'</where>
</update>
关于oracle - 更新 liquibase 中的查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30881503/