views:

184

answers:

2

i have field X that contain text with spaces in the end of the text

how i can remove them ?

i need it in any sql query for oracle 10g

+3  A: 

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

K

Karl T.
+3  A: 

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

David Aldridge