Comments on: A very fast introduction on Mysql triggers http://www.richnetapps.com/a_very_fast_introduction_on_mysql_trigge/ Internet Applications - Flash, Flex, Silverlight, JavaFX Sat, 03 Jul 2010 12:30:55 +0000 hourly 1 http://wordpress.org/?v=3.0 By: Ricardohttp://www.richnetapps.com/a_very_fast_introduction_on_mysql_trigge/comment-page-1/#comment-61 Ricardo Sat, 08 Jul 2006 00:08:52 +0000 #comment-61 Well... You can update another table with the data of the current table...<br /> <br /> Example:<br /> <br /> CREATE TRIGGER testTrigger AFTER INSERT ON table1<br /> BEGIN<br /> UPDATE table2 SET field=NEW.table1Value<br /> END; 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;

]]>
By: Adrian Stanilahttp://www.richnetapps.com/a_very_fast_introduction_on_mysql_trigge/comment-page-1/#comment-60 Adrian Stanila Mon, 24 Apr 2006 05:58:01 +0000 #comment-60 No. The values for old and new values are refering on triggerred table.<br /> <br /> No. The values for old and new values are refering on triggerred table.

]]>
By: baris ozdilhttp://www.richnetapps.com/a_very_fast_introduction_on_mysql_trigge/comment-page-1/#comment-59 baris ozdil Sun, 23 Apr 2006 03:34:58 +0000 #comment-59 Hi,<br /> <br /> Just a short question. I it possible to update a table other than the one where the trigger is activated?<br /> <br /> Thanks<br /> Baris Hi,

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

Thanks
Baris

]]>