用于对表运行更新查询以从列中的值中删除所有空格的正确语法是什么?
我的表名为 users
,在 fullname
列中,一些值看起来像 'Adam Noel'
。我想删除空格,以便新值为 'AdamNoel'
我有 30k 行
最佳答案
update users
set fullname = replace(fullname, ' ', '');
关于postgresql - 如何在更新查询中从 Postgres 数据库的字段中删除所有空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20376579/