http://www.php.net/manual/zh/pdo.prepared-
statements.php#101993
从以上链接的评论中:
$dbh->query("CALL SomeStoredProcedure($someInParameter1,$someInParameter2, @someOutParameter)”);
$dbh->query(“SELECT @someOutParameter”);// OR, if you want very much to use PDO.Prepare(),// insert "SELECT @someOutParameter" in your stored procedure and thenuse:
$stmt = $dbh->prepare("CALL SomeStoredProcedure(?, ?)");$stmt ->execute(array($someInParameter1, $someInParameter2));
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)