pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedproblem in Trigger
2+ messages / 2 participants
[nested] [flat]
* problem in Trigger
@ 2003-04-09 09:50 Ramesh PAtel <ramesh@banas.guj.nic.in>
2003-04-09 11:23 ` Re: problem in Trigger A.Bhuvaneswaran <bhuvansql@myrealbox.com>
0 siblings, 1 reply; 2+ messages in thread
From: Ramesh PAtel @ 2003-04-09 09:50 UTC (permalink / raw)
To: 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@banas.guj.nic.in
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: problem in Trigger
2003-04-09 09:50 problem in Trigger Ramesh PAtel <ramesh@banas.guj.nic.in>
@ 2003-04-09 11:23 ` A.Bhuvaneswaran <bhuvansql@myrealbox.com>
0 siblings, 0 replies; 2+ messages in thread
From: A.Bhuvaneswaran @ 2003-04-09 11:23 UTC (permalink / raw)
To: Ramesh PAtel <ramesh@banas.guj.nic.in>; +Cc: pgsql-admin
> 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.
Follow the below link to learn howto write triggered procedures:
http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=plpgsql-trigger.html
Donot post the same message with different subject in different mailing
list.
regards,
bhuvaneswaran
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-04-09 11:23 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-09 09:50 problem in Trigger Ramesh PAtel <ramesh@banas.guj.nic.in>
2003-04-09 11:23 ` A.Bhuvaneswaran <bhuvansql@myrealbox.com>
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