Re: union and limit - Mailing list pgsql-general

From Mario Weilguni
Subject Re: union and limit
Date
Msg-id 003d01c24da2$036dbf80$6f01c00a@icomedias.com
Whole thread Raw
In response to union and limit  ("Ben-Nes Michael" <miki@canaan.co.il>)
List 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@canaan.co.il>
To: "postgres" <pgsql-general@postgresql.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
>



pgsql-general by date:

Previous
From: "Ben-Nes Michael"
Date:
Subject: union and limit
Next
From: "Ben-Nes Michael"
Date:
Subject: how to count string occurrence in column