problem in Trigger

From: "Ramesh PAtel " <ramesh(at)banas(dot)guj(dot)nic(dot)in>
To: pgsql-admin(at)postgresql(dot)org
Subject: problem in Trigger
Date: 2003-04-09 09:50:49
Message-ID: 3E943B25.31935.11FEE93@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)banas(dot)guj(dot)nic(dot)in

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message A.Bhuvaneswaran 2003-04-09 11:23:51 Re: problem in Trigger
Previous Message A.Bhuvaneswaran 2003-04-09 09:44:59 Re: <no subject>