开发者社区> 问答> 正文

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 4519 0
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
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Borgaonkar-New-Adventures-In-Spying-3G-And-4G-Users-Locate-Track-And-Monitor 立即下载
Sparklint a Tool for Identifying and Tuning Inefficient Spark Jobs Across Your Cluster 立即下载
低代码开发师(初级)实战教程 立即下载