开发者社区 问答 正文

Commands out of sync; you can't run this command now

php调用存储过程后再执行sql就提示Commands out of sync; you can't run this command now,请问是什么问题?

展开
收起
落地花开啦 2016-02-14 15:09:44 4650 分享
分享
版权
举报
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    每次调完mysql_query要释放资源,c/c++中是:
    `do

    { 
        MYSQL_RES *pRes = mysql_store_result(pMySql); 
        if(pRes!=NULL) 
            mysql_free_result(pRes); 
    }while(!mysql_next_result(pMySql));`

    很容易转成php的吧。

    2019-07-17 18:42:38 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
问答分类:
问答地址: