Re: Ambiguous error on view - Mailing list pgsql-novice

From Tom Lane
Subject Re: Ambiguous error on view
Date
Msg-id 3219.1127482990@sss.pgh.pa.us
Whole thread Raw
In response to Re: Ambiguous error on view  (Gnanavel S <s.gnanavel@gmail.com>)
List pgsql-novice
Gnanavel S <s.gnanavel@gmail.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

pgsql-novice by date:

Previous
From: Sean Davis
Date:
Subject: Bytea and pg_dump/dumpall
Next
From: Frank Bax
Date:
Subject: Re: Import dbf data