Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trim function doesn`t work

425491Nov 3 2005 — edited Nov 3 2005
Hello,

I tried to do the following

select trim(field) from table;

Some fields have only a space as value, others have leading spaces. But Oracle ignores the trim funtion.
I also tried
select rtrim(ltrim(fieldname) from....
but it doesn`t work also...
We use Oracle 9*, the field is a VARCHAR2(4000).
Any ideas?
Thanks in advance

Britta
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2005
Added on Nov 3 2005
6 comments
1,762 views