| От | Florent Guillaume |
|---|---|
| Тема | UNION/INTERSECT in subselects |
| Дата | |
| Msg-id | 20000831195045.A7426@twin.efge.org обсуждение исходный текст |
| Ответы |
Re: UNION/INTERSECT in subselects
|
| Список | pgsql-hackers |
Hi, I'm using 7.0.2 and I have a problem with UNION in some subselects, namely the following works:select * from a where a.f in (select 1) but this doesn't:select * from a where a.f in (select 1 union select 2) In the grammar we have : in_expr: SubSelect | ... but SubSelect doesn't allow UNIONs, only select_clause does. Could in_expr be changed to use select_clause instead without adverse ill effects ? In fact SubSelect is used all over the place, so maybe it's better to switch select_clause and SubSelect in the definitions for SelectStmt, select_clause and SubSelect ? Thanks, Florent (Please Cc: me in your answers)
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера