wired behaviour

Поиск
Список
Период
Сортировка
От Lutz Steinborn
Тема wired behaviour
Дата
Msg-id 20081128145137.ac5b852b.l.steinborn@4c-ag.de
обсуждение исходный текст
Ответы Re: wired behaviour  ("Paul Dam" <p.dam@amyyon.nl>)
Re: wired behaviour  (ries van Twisk <pg@rvt.dds.nl>)
Re: wired behaviour  (Lennin Caro <lennin.caro@yahoo.com>)
Список pgsql-sql
Hello,

I have an problem understanding a simple query:

For example I have the following:
select count(*) from foo;
gives me 1000

select count(*) from foo where bar = 'Mr Spock';
gives me 5

select count(*) from foo where NOT bar = 'Mr Spock';
gives me 857

Why I'm not getting 955 for the last query ?


Any idea ?

Kindly regards


Lutz


В списке pgsql-sql по дате отправления:

Предыдущее
От: "John Dizaro"
Дата:
Сообщение: Re: UPDATE and DELEte with a lot of register is to slow...
Следующее
От: "Paul Dam"
Дата:
Сообщение: Re: wired behaviour