Re: wired behaviour

Поиск
Список
Период
Сортировка
От Lennin Caro
Тема Re: wired behaviour
Дата
Msg-id 487076.61418.qm@web59511.mail.ac4.yahoo.com
обсуждение исходный текст
Ответ на wired behaviour  (Lutz Steinborn <l.steinborn@4c-ag.de>)
Список pgsql-sql


--- On Fri, 11/28/08, Lutz Steinborn <l.steinborn@4c-ag.de> wrote:

> From: Lutz Steinborn <l.steinborn@4c-ag.de>
> Subject: [SQL] wired behaviour
> To: pgsql-sql@postgresql.org
> Date: Friday, November 28, 2008, 1:51 PM
> 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
> 
> -- 

Probably you have null values in bar column 


     



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

Предыдущее
От: Shane Ambler
Дата:
Сообщение: Re: wired behaviour
Следующее
От: "Helio Campos Mello de Andrade"
Дата:
Сообщение: Re: Converting between UUID and VARCHAR