Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> LTRIM bug?
I am using a ltrim function and experiencing a weird result. I am
trying to cut off a string 'COMPANY-' on the left side but I got
different results with different texts (see below). The 2nd query
result is incorrect as the 'C' is missing. It seems to me that if the
first character after trim is the same as the first character before
trims, Oracle cut the first character off the resulting string.
Anyone experiencing this problem? I am on 8.1.7.2.0 EE Sun Solaris
2.8.
SQL> select ltrim('COMPANY-JOHN','COMPANY-') from dual;
LTRI
LTRIM(