pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Samuel <andysamuel@geocities.com>
To: pgsql-general@postgresql.org
Subject: Trigger
Date: Fri, 29 Jun 2001 12:38:53 +0700
Message-ID: <000501c1005d$c8547020$0100a8c0@foserver> (raw)

How do I create a trigger on a table if a certain row is updated ?
For example, a table called DefaultValue with :
ModuleId char(10),
FieldId char(10),
DefVal char(3)

If I update the table 'update DefaultValue set defval='OFF'  where
FieldId='MODULESTATUS' then it will fire the event.

Thank you in advance
Andy






view thread (47+ messages)  latest in thread

Message-ID: <000501c1005d$c8547020$0100a8c0@foserver>
Permalink:  ../000501c1005d$c8547020$0100a8c0@foserver/
Also on:    postgresql.org/message-id/000501c1005d$c8547020$0100a8c0@foserver

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andysamuel@geocities.com
  Subject: Re: Trigger
  In-Reply-To: <000501c1005d$c8547020$0100a8c0@foserver>
  References: <000501c1005d$c8547020$0100a8c0@foserver>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox