Re: IN selection issues

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: IN selection issues
Дата
Msg-id 9958.1043380834@sss.pgh.pa.us
обсуждение исходный текст
Ответ на IN selection issues  (Jérôme Calais <jerome.calais@arunix.fr>)
Список pgsql-bugs
Jérôme Calais <jerome.calais@arunix.fr> writes:
> I am encountering problems with IN selections.
> I am trying this query :
> delete from status where status_id not in (select distinct status_id
> from company);

I'll bet the sub-select yields some NULL rows?  If so, this is not a
bug.  NOT IN is not very intuitive about handling of NULLs.  I suggest
you consult a SQL textbook ...
        regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: IN selection issues
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug #883: explain analyze causes postgres to die