MySQL Forums
Forum List  »  Stored Procedures

Re: Is there any way i can call an external program like C/Java using stored procedures or trigger?
Posted by: Roland Bouman
Date: January 04, 2006 09:01PM

You can write an UDF, and call that from inside the trigger. The UDF would contain the code to communicate with your application. Of course, you cannot target a specific client from there. Inside the UDF, there's no context what client caused the trigger to fire.

see: http://dev.mysql.com/doc/refman/5.0/en/adding-functions.html

It's brief and shallow, but maybe this will get you started:

http://rpbouman.blogspot.com/2005/11/using-udf-to-raise-errors-from-inside.html

BTW, what do you want to achieve exactly?




Edited 1 time(s). Last edit at 01/04/2006 09:06PM by Roland Bouman.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Is there any way i can call an external program like C/Java using stored procedures or trigger?
1851
January 04, 2006 09:01PM


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.