首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用存储过程建立MySQL数据库连接

问使用存储过程建立MySQL数据库连接
EN

Stack Overflow用户
提问于 2015-06-03 00:17:25
回答 1查看 186关注 0票数 0

所有通过PHP使用MySQL存储过程的示例都显示了在调用过程之前与PHP建立连接的脚本。是否可以定义和使用一个过程来建立连接,并返回PHP要使用的连接处理程序?

EN

回答 1

Stack Overflow用户

发布于 2015-06-03 00:27:56

存储过程可以有IN、INOUT和OUT参数,具体取决于MySQL版本。

代码语言:javascript
复制
IN
Passes a value into a procedure.

OUT
Passes a value from a procedure back to the caller.

INOUT
The caller initializes an INOUT parameter, but the procedure can modify the value, and the final value is visible to the caller when the procedure returns.

您需要连接到数据库才能调用存储过程。所以你不能得到一个回调连接的过程。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30601346

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档