📜  在 laravel 中调用存储过程 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:57.930000             🧑  作者: Mango

代码示例3
Hi
I have something to ask

ADMIN_USER PROCEDURE HAVE THREE INPUT PARAMETER AND ONE OUTPUT PARAMETER
(INPUT PARAMETER) I_ADMIN_ID, I_PWD, I_CONN_IP
(OUTPUT PARAMETER) O_RET_CD

(PHP CODE)
DB::select('EXEC dbo.ADMIN_USER @I_ADMIN_ID = ?, @I_PWD = ?, @I_CONN_IP = ?',[$credentials['user_id'], $credentials['password'], $_SERVER['REMOTE_ADDR']]);

How can I get the output parameters passed?