pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ramesh PAtel <ramesh@banas.guj.nic.in>
To: pgsql-admin@postgresql.org
Subject: problem in Trigger
Date: Wed, 9 Apr 2003 15:20:49 +0530
Message-ID: <3E943B25.31935.11FEE93@localhost> (raw)

Sir


I have two table  EMP_MST and  EMP_TRANS	

field of EMP_MST
emp_no, emp_nm, dept_cd

field of EMP_TRANS	
emp_no, trans_dt, olddept_cd, newdept_cd


Now i want to Trigger on EMP_TRANS when  data INSERT  AFTER event
when insert one row in EMP_TRANS  table that time i want to UPDATE  column   
EMP_MST.dept_cd   with latest value of  EMP_TRANS.newdept_cd  by TRIGGER.

Please give some reply.

I am looking forwared to your fevarable reply. 

Ramesh Patel

ramesh@banas.guj.nic.in




view thread (2+ messages)  latest in thread

Message-ID: <3E943B25.31935.11FEE93@localhost>
Permalink:  ../3E943B25.31935.11FEE93@localhost/
Also on:    postgresql.org/message-id/3E943B25.31935.11FEE93@localhost

 · 

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-admin@postgresql.org
  Cc: ramesh@banas.guj.nic.in
  Subject: Re: problem in Trigger
  In-Reply-To: <3E943B25.31935.11FEE93@localhost>
  References: <3E943B25.31935.11FEE93@localhost>

* 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