Oracle length () function returns invalid value
I just found ... I don't know what I would call, but here goes:
SELECT part_num,
length(trim(part_num))
FROM part_programs
WHERE rownum <= 10;
... Results:
PART_NUM LENGTH(TRIM(PART_NUM))
--------------- ----------------------
THAB256 8
THA1256674 11
THA1256674GU 13
THA1257141 11
THA1257141FR 13
THA1257141FR1 14
THA1257141TD 13
THA2002013 11
THA2002013MI 13
THA2002013MI1 14
The returned integer from the length () call actually returns 1 + realLength values.
I'm not sure where to start, would anyone want to shed some light?
+2
source to share
2 answers