Armand is a 32 year old designer and programmer employed with Media Division. He has 15 years experience with programming, specializing in scripting languages such as Actionscript, Javascript and PHP. He also does design and photography.

3 responses to “A very fast introduction on Mysql triggers”

  1. baris ozdil

    Hi,

    Just a short question. I it possible to update a table other than the one where the trigger is activated?

    Thanks
    Baris

  2. Adrian Stanila

    No. The values for old and new values are refering on triggerred table.

  3. Ricardo

    Well… You can update another table with the data of the current table…

    Example:

    CREATE TRIGGER testTrigger AFTER INSERT ON table1
    BEGIN
    UPDATE table2 SET field=NEW.table1Value
    END;