Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Length of empty string?
Why does length() return nothing (instead of the number zero) on an
zero-length string?
SQL> select length('xxx') from dual;
LENGTH('XXX')
3
SQL> select length('') from dual;
LENGTH('')
SQL> The first query makes sense, but the second one does not. I would have expected to get back zero. Instead I'm getting back nothing, or blank, or something which isn't zero. I'm confused.
--
Roy Smith <roy_at_popmail.med.nyu.edu>
New York University School of Medicine
Received on Fri May 01 1998 - 08:57:06 CDT
![]() |
![]() |