开发者

Execute script in stored procedure

开发者 https://www.devze.com 2023-01-31 03:37 出处:网络
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

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

精彩评论

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