Re: union in subselect? - Mailing list pgsql-sql

From Tom Lane
Subject Re: union in subselect?
Date
Msg-id 10905.996592603@sss.pgh.pa.us
Whole thread Raw
In response to union in subselect?  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
List pgsql-sql
Gary Stainburn <gary.stainburn@ringways.co.uk> writes:
> select * from actions where cposn in (select posn from positions where pholder
> = 81 union select 'NEC' as posn from members where mnec = true and mid = 81);

> gives me:
> ERROR:  parser: parse error at or near "union" 

Update to PG 7.1.
        regards, tom lane


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Get name of columns in a table
Next
From: "Josh Berkus"
Date:
Subject: Fuzzy matching?