开发者

how to remove spaces in and of text field

开发者 https://www.devze.com 2022-12-09 18:12 出处:网络
I have field X that contains text with spaces in the end of the text. How I can remove them? I need it in any SQL query for ora开发者_StackOverflow中文版cle 10g.Strictly speaking if you want to only

I have field X that contains text with spaces in the end of the text.

How I can remove them?

I need it in any SQL query for ora开发者_StackOverflow中文版cle 10g.


Strictly speaking if you want to only remove trailing spaces then you'd use RTrim(). LTrim() is leading spaces and Trim() is both.


select trim(COLUMN_NAME) from .......
;
0

精彩评论

暂无评论...
验证码 换一张
取 消