Top "Triggers" questions

Triggers are rules that perform actions or invoke functions in response to events such as matching conditions or database changes.

How to program a MySQL trigger to insert row into another table?

I'm looking to create a MySQL trigger on a table. Essentially, I'm creating an activity stream and need to log …

mysql triggers lastinsertid procedures
How can I edit values of an INSERT in a trigger on SQL Server?

I have the table Tb ID | Name | Desc ------------------------- 1 | Sample | sample desc I want to create a trigger on INSERT …

sql sql-server sql-server-2008 tsql triggers
SQL Differences between stored procedure and triggers

I'm having trouble understanding the difference between a stored procedure and a trigger in sql. If someone could be kind …

sql stored-procedures triggers
PLSQL :NEW and :OLD

Can anyone help me understand when to use :NEW and :OLD in PLSQL blocks, I'm finding it very difficult to …

oracle plsql triggers
what is the difference between triggers, assertions and checks (in database)

Can anybody explain (or suggest a site or paper) the exact difference between triggers, assertions and checks, also describe where …

sql database triggers assertions
Throw an error in a MySQL trigger

If I have a trigger before the update on a table, how can I throw an error that prevents the …

mysql database triggers
SQL Transaction was deadlocked

Sometimes I get this kind of exception on not very busy SQL server: Transaction (Process ID 57) was deadlocked on lock …

sql-server exception stored-procedures triggers
How to run a callback function on a jQuery trigger("click")?

I need to trigger a custom event in the callback of a trigger call, but I can't get it to …

javascript jquery events triggers callback
SQL Insert trigger to update INSERTED table values

I want to create an Insert trigger that updates values on all the inserted rows if they're null, the new …

sql-server-2005 insert triggers
Creating audit triggers in SQL Server

I need to implement change tracking on two tables in my SQL Server 2005 database. I need to audit additions, deletions, …

sql-server sql-server-2005 triggers audit