Do i need triggers for this?

From: Date: Tue, 26 Nov 2002 04:46:06 +0000
Subject: Do i need triggers for this?
Groups: php.general 
Request: Send a blank email to php-general+get-126041@lists.php.net to get a copy of this message
Hi guys, Lets say I have a table called 'employees', and another table called 'training_history'. Lets say I need to delete an employee, I would also have to delete his record in the 'training_history' table. Which is the best way to go about this? Controlling it at application level? Or should I need triggers (I'm using postgresql). If the latter, how do I create triggers for this kind of situation in postgresql? Thanks. Regards, Faisal ______________________________________

« previous php.general (#126041) next »