union and LIMIT problem
| От | Oleg Bartunov |
|---|---|
| Тема | union and LIMIT problem |
| Дата | |
| Msg-id | Pine.GSO.3.96.SK.991006230035.4801e-100000@ra обсуждение исходный текст |
| Ответы |
Re: [HACKERS] union and LIMIT problem
Re: [HACKERS] union and LIMIT problem |
| Список | pgsql-hackers |
Does anybody know how to use UNION and LIMIT together ?
I want to get 10 rows from publications and 10 rows
from keys.
select msg_id from publications limit 10 union
select key_id from keys limit 10
produces
ERROR: parser: parse error at or near "union
select msg_id from publications union
select key_id from keys limit 10
produces something I wasn't expected
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
В списке pgsql-hackers по дате отправления: