Execute script in stored procedure
Can you execute, say a PHP script from a stored procedure in开发者_JAVA百科 a MySQL database? Or are you limited purely to internal / custom database functions?
First question : No
Second question : Depends
mysql> \! php -r "echo 1;";
1 "> /* <-- results from php */
However, I don't think is advisable to this ...
I dont believe you can do that, but as you know you can execute a stored procedure from PHP. But even if its possible, I wouldn't do it. For some reason it seems like you're trying to solve your problem the wrong way.
精彩评论