Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: VARCHAR2: NULL value vs. empty string
"Chris" <cs123._no_spam__at_telstra.com> wrote in message
news:2CxCb.50465$aT.20559_at_news-server.bigpond.net.au...
> Just out of interest sake, how do you index a zero length string?
>
>
From SQL'92 standard:
<quote>
<... skipped ...>
e) Case:
i) If S is greater than LC or if E is less than 1, then the result of the <character substring function> is a zero- length string.
The answer to your question is: zero-length string ( S=1, LC=0 -> '').
Rgds. Received on Sat Dec 13 2003 - 00:09:37 CST