开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜