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: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Gnanavel S <s(dot)gnanavel(at)gmail(dot)com> writes:
> try this,
> 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-2017 The PostgreSQL Global Development Group