except command

From: olivier boissard <olivier(dot)boissard(at)cerene(dot)fr>
To: pgsql-admin(at)postgresql(dot)org
Subject: except command
Date: 2007-08-13 17:50:46
Message-ID: 46C099F6.8050002@cerene.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello

I tried to use the except command in postgresql 8.1
I don't understand as it works
When I read doc , I understand that it was like a difference betwwen two
queries
However , It looks as if the 2nd part was ignored
I tried to test by dblink a query unising except on the same database
and all the records where returned
Do anybody know how it works ?

exemple:
select
t1.columns .....
from
table_1 t1
EXCEPT
select
t2.same_columns .....
from
table_2 t2

Olivier

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2007-08-13 18:07:43 Re: except command
Previous Message Kevin Grittner 2007-08-13 14:59:39 Re: Audit Trail