我需要在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>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句