Skip site navigation (1) Skip section navigation (2)

UNION not allowed in sub-selects?

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: UNION not allowed in sub-selects?
Date: 1999-11-28 19:50:55
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
In 6.5.3, it seems that UNION is not allowed inside a sub-select:

bray=> select,, from person* as p, address as a
bray=> where in
bray-> (select id from customer union select id from supplier);
ERROR:  parser: parse error at or near "union"

The same applies to EXCEPT and INTERSECT.

Is this a permanent feature, an oversight, or something already on the TODO

      Vote against SPAM:
Oliver Elphick                                Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight                    
               PGP key from public servers; key ID 32B8FAA1
     "The earth is the LORD'S, and the fullness thereof; the
      world, and they that dwell therein."       Psalms 24:1


pgsql-hackers by date

Next:From: Tim HollowayDate: 1999-11-28 20:02:57
Subject: Re: [HACKERS] Re: pg_ctl
Previous:From: Ed LoehrDate: 1999-11-28 19:45:19
Subject: [HACKERS] How to get OID from INSERT in PL/PGSQL?

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group