php pdo cant excute alter statment

时间:2018-04-29 06:04:54

标签: php pdo

public function 
updateOrderno($neworderid){    
        $updateData = array($neworderid);
        $stmt = $this->pdo->prepare("ALTER TABLE `order` AUTO_INCREMENT=?");
    try {
        if ($stmt->execute($updateData)){
            return true;
        }else{
            return false;
        }
    } catch (PDOException $e){
        return  false;
    }
 }

这是我的代码,我用$ post数据调用,然后是 当我执行alter statement任何帮助时,它会继续返回false吗?

0 个答案:

没有答案