mysql - Can triggers call PHP Scripts? -
i have written trigger, mysql doesn't it:
code :
create trigger triggers_on_comand_line after update on test1 each row begin if total_volume >= used_volume \! echo "php -f /home/test.php" end;
i got error :
** mysql said: documentation 1064 - 064 - have error in sql syntax; check manual corresponds mysql server version right syntax use near '! echo "php -f /home/test.php" @ line 6 **
thanks
yes, can call php scripts if install mysql_udf_sys
Comments
Post a Comment