Re: Subselects open issue Nr. 5

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SARZ
Тема Re: Subselects open issue Nr. 5
Дата
Msg-id 219F68D65015D011A8E000006F8590C6010A51D8@sdexcsrv1.sd.spardat.at
обсуждение исходный текст
Список pgsql-hackers
> 5. I need in advice: if subquery introduced with NOT IN doesn't return
>    any tuples then qualification is failed, yes ?

Informix treats the subselect as NULL if no rows are returned.
Therefore all parent rows that are not null are returned.

select * from taba where a not in (<a select returning no row>);    --
is same as
select * from taba where a is not null;

Andreas

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