Re: LIKE Magic

2001-07-05 Thread Paul DuBois
> > Dibo Chen == [EMAIL PROTECTED] napisa?(a): > >> You must have 8001 - 1 - 2788 NULLs for kword_10. Please confirm it. > >Yes it's true! But why NOT LIKE gives false for NULL values? NULL values fail all comparisons except IS NULL. >How can I get rid of this NULL's? >Is "update docs set

Re: LIKE Magic

2001-07-05 Thread Jakub Wasielewski
> Dibo Chen == [EMAIL PROTECTED] napisaƂ(a): > You must have 8001 - 1 - 2788 NULLs for kword_10. Please confirm it. Yes it's true! But why NOT LIKE gives false for NULL values? How can I get rid of this NULL's? Is "update docs set kword_10 = '' where kword_10 IS NULL" enough? Cheers, I love

Re: LIKE Magic

2001-07-05 Thread Dibo Chen
You must have 8001 - 1 - 2788 NULLs for kword_10. Please confirm it. Jakub Wasielewski wrote: > > Hello! > > Could somebody explain me why it's like that: > > mysql> select count(*) from docs where kword_10 LIKE '%Ukraina%'; > +--+ > | count(*) | > +--+ > |1 | > +-

LIKE Magic

2001-07-05 Thread Jakub Wasielewski
Hello! Could somebody explain me why it's like that: mysql> select count(*) from docs where kword_10 LIKE '%Ukraina%'; +--+ | count(*) | +--+ |1 | +--+ 1 row in set (0.09 sec) ^^^ This is true! mysql> select count(*) from docs where kword_10 NOT LIKE '%Ukraina%'