我有一个存储过程调用 updateLosingSelections
当我跑
call updateLosingSelections
直接在我的 mysql 数据库上出现预期的结果。
当我尝试使用 pdo 从 php 页面运行它时,没有任何反应,但同样没有抛出或显示错误。我在这里遗漏了一些明显的东西吗?这是我的php页面代码。
<?php
session_start();
include_once('../connections/connection.php');
$sql_update_standings = 'call updateLosingSelections()';
$sth = $dbh->prepare($sql_update_standings);
$sth->execute();
?>
多谢你们。DS
编辑...最后,我将存储过程中的 sql 放入了存储过程中,并将其保留为 pdo 语句中的 sql 代码。把头发扯下来对我不好。