Re: [SOLVED] Rules in views, how to?

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [SOLVED] Rules in views, how to?
Date: 2010-07-06 13:12:33
Message-ID: 20100706131233.GS7584@samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jul 06, 2010 at 12:55:22PM +0100, Andre Lopes wrote:
> update aau_utilizadores
> set group_id = 3
> where email = pEMAIL;
[..]
> If I use the clause WHERE only in "id" will not work fot both cases, or will
> work?

Yes, it'll do the "right thing". OLD always refers to the previous
version of the row and NEW refers to the new version of the row, you can
use as many or few of the columns as you want.

--
Sam http://samason.me.uk/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2010-07-06 14:09:26 Re: Rules in views, how to?
Previous Message Andre Lopes 2010-07-06 11:55:22 Re: [SOLVED] Rules in views, how to?