Answer the question
In order to leave comments, you need to log in
Stored procedures, out parameter. mysqli, php?
Gentlemen habravchane.
I have such a question.
Is there a procedure
CREATE PROCEDURE iotest( IN a VARCHAR(16), OUT b VARCHAR(16) )<br/>
BEGIN<br/>
SET b = a;<br/>
END //
$stmt = $con->prepare("call iotest(?,?)");<br/>
$a = 'test';<br/>
$b = 'result';<br/>
$name = 'b';<br/>
$stmt->bind_param("ss", $a, %some%); // в любой комбинации: $b / &$b / $name и другое.
Answer the question
In order to leave comments, you need to log in
according to the documentation dev.mysql.com/doc/refman/5.0/en/call.html
There will always be two requests.
Separately EXECUTE and separately SELECT OUT parameters
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question