Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Peculiar results from a simple looking query.
look at this:
create table atable(field varchar(20))
insert into atable values ('This is a test')
select field from atable where cast(field as varchar(2))='Th' FIELD
select field from atable where cast(field as varchar(4))='This' FIELD
/* but B AND A is true ;))) */
select field from atable where
cast(field as varchar(2))='Th'
and
cast(field as varchar(4))='This'
FIELD
drop table atable
OK, OK, I'll shut up and read the documentation ;))) The documentation sure says it's a feature, not a bug ;))) Received on Fri Feb 25 2005 - 10:36:47 CST