| От | Alex Guryanow |
|---|---|
| Тема | using INTERSECT and UNION in IN clause |
| Дата | |
| Msg-id | 7576.000822@nlr.ru обсуждение исходный текст |
| Ответы |
Re: using INTERSECT and UNION in IN clause
|
| Список | pgsql-general |
Hi,
postgresql 7.0.2. Why by executing the following query
select * from magazine
where id in (
select mag_id from dict where word = 'akademie' intersect
select mag_id from dict where word = 'der' intersect
select mag_id from dict where word = 'klasse' )
I receive the following error:
ERROR: parse error at or near 'intersect'
while the query
select mag_id from dict where word = 'akademie' intersect
select mag_id from dict where word = 'der' intersect
select mag_id from dict where word = 'klasse' )
is executed successfully.
Is it possible to use INTERSECT and UNION keywords in subqueries?
Regards,
Alex
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера