Oracle更新列LTRIM和RTRIM [英] Oracle Update Column LTRIM and RTRIM

查看:208
本文介绍了Oracle更新列LTRIM和RTRIM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望使用以下方法在SQL Developer中更新数据库数据

I am wish to update my database data in SQL Developer using

UPDATE TABLE_NAME SET COLUMN_NAME = LTRIM(RTRIM(COLUMN_NAME))

但是即使显示行更新"的消息也不会起作用.每个字符串后面仍然存在前导和尾随空格.

But it does not take any effect even the msg of "rows updated" is displayed. The leading and trailing white spaces still exist behind every strings.

有什么想法吗?

推荐答案

您在更新后提交吗?

update tableName set col1 = trim(col1);
commit;

这篇关于Oracle更新列LTRIM和RTRIM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆