Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: between '' and 'ZZZ'
Leo Baltus wrote in message <8bvje3$mn9$1_at_nnrp1.deja.com>...
>This is probably a newbe question, but anyway:
>
>Can somebody please explain the following :
>
>select * from table where col1 between '' and 'ZZZ'
>
>it gives no result, but when I try:
>
>select * from table where col1 between ' ' and 'ZZZ'
I think it is because the first SQL means this:
select * from table where col1 between NIL and 'ZZZ'
NIL (or null) is not in any range - it a null, nothing, void.
regards,
Billy
Received on Thu Mar 30 2000 - 00:00:00 CST