执行存储过程我有一个存储过程调用updateLosingSelections与PDO
当我在我的MySQL数据库运行
call updateLosingSelections
直接产生预期的结果。
当我尝试使用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存储在我的存储过程中,并将其作为SQL代码存放在pdo语句中。把我的头发撕掉对我来说并不好。
你期望发生什么? –
我期待在我的数据库更新中有一个表。就像我说的那样,如果我直接在mysql db中运行“call updateLosingSelections” – dstewart101