Can triggers call SYSTEM?
Hi!
I have written a trigger, but mysql doesn't like it:
create trigger triggers_on_comand_line BEFORE INSERT on test1
for each row
begin
system php -f /home/test.php;
end;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'php -f /home/test.php; end' at line 1
There is no problem to execute the SYSTEM from the command line of mysql:
mysql> system php -f /home/test.php;
What do I wrong?
My operating system is Ubunutu.
Cao
Subject
Views
Written By
Posted
Can triggers call SYSTEM?
17554
September 03, 2007 01:58AM
10022
November 27, 2008 04:17PM
8888
November 28, 2008 05:14AM
25558
April 14, 2009 03:34PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.