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

Re: Ambiguous error on view

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gnanavel S <s(dot)gnanavel(at)gmail(dot)com>
Cc: Toff <kristoff(dot)six(at)telenet(dot)be>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Ambiguous error on view
Date: 2005-09-23 13:43:10
Message-ID: 3219.1127482990@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
Gnanavel S <s(dot)gnanavel(at)gmail(dot)com> writes:
> try this,
> CREATE VIEW allops AS
> select operatorid,operatorname from acc1.operator where active=3Dtrue
> union
> select operatorid,operatorname from acc2.operator where active=3Dtrue
> ;

Most likely you want UNION ALL not just UNION.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Frank BaxDate: 2005-09-23 13:58:26
Subject: Re: Import dbf data
Previous:From: Sean DavisDate: 2005-09-23 11:11:02
Subject: Bytea and pg_dump/dumpall

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