Re: union and limit

From: "Mario Weilguni" <mweilguni(at)sime(dot)com>
To: "Ben-Nes Michael" <miki(at)canaan(dot)co(dot)il>, "postgres" <pgsql-general(at)postgresql(dot)org>
Subject: Re: union and limit
Date: 2002-08-27 08:16:14
Message-ID: 003d01c24da2$036dbf80$6f01c00a@icomedias.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

select * from (select * from table limit 3,0) as foo1
UNION ALL
select * (select * from table limit 3,0) as foo2

might work, but I did not try

----- Original Message -----
From: "Ben-Nes Michael" <miki(at)canaan(dot)co(dot)il>
To: "postgres" <pgsql-general(at)postgresql(dot)org>
Sent: Tuesday, August 27, 2002 10:08 AM
Subject: [GENERAL] union and limit

> Hi All
>
> i tried to send the following querry:
>
> select * from table limit 3,0 UNION ALL select * from table limit 3,0;
>
> This querry returned me an error so i put each select in parenthesis and
it
> worked.
>
> Is this the way to solve it ?
> if it is, i think it should be in the docs.
>
> Cheer
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thirumoorthy Bhuvneswari 2002-08-27 09:10:29 Cast Type
Previous Message Ben-Nes Michael 2002-08-27 08:08:15 union and limit