Triggers [message #37105] |
Thu, 17 January 2002 20:29  |
Elavarasan
Messages: 7 Registered: January 2002
|
Junior Member |
|
|
Hi all,
I would like to write a BEFORE INSERT trigger for table A.
This trigger should check whether the newly entered row already exist in the table. If it exist, it should return without doing anything. else it should insert the new row into the table A.
I.e
If newrow.patient_id = old.patient_id then
do nothing and return
else
insert the new row
How to write a trigger for the above scenario. Need your help.
Thanks in advance.
Rgds
Elav
|
|
|
|
|