Commands out of sync; you can't run this command now SQL
2017-08-28 10:40
766 查看
问题描述:Commands out of sync; you can't run this command now SQL
问题来源:数据库做表跟表连接的时候没有做校验,由于查询返回两个结果集引起的bug,比如我下面这句sql
SELECT r.userId FROM process_run r JOIN process_form f WHERE f.activityName = '开始' AND f.`status` = 1上面这天sql就是缺少了on的校验
SELECT r.userId FROM process_run r JOIN process_form f on r.runId = f.runId WHERE f.activityName = '开始' AND f.`status` = 1
这样子就没有问题,出现这种问题其实都是差不多这个意思!
解决方案:关闭数据库,重新连接就可以了!
问题来源:数据库做表跟表连接的时候没有做校验,由于查询返回两个结果集引起的bug,比如我下面这句sql
SELECT r.userId FROM process_run r JOIN process_form f WHERE f.activityName = '开始' AND f.`status` = 1上面这天sql就是缺少了on的校验
SELECT r.userId FROM process_run r JOIN process_form f on r.runId = f.runId WHERE f.activityName = '开始' AND f.`status` = 1
这样子就没有问题,出现这种问题其实都是差不多这个意思!
解决方案:关闭数据库,重新连接就可以了!
相关文章推荐
- C++ Mysql调用 错误:2014 :Commands out of sync; you can't run this command now
- mysql: Commands out of sync; you can't run this command now
- mysql 出现 Commands out of sync; you can't run this command now
- MySQL一次执行多条语句的实现及常见问题(C API Commands out of sync; you can't run this command now)
- Commands out of sync; you can't run this command now
- 解决mysql error:2014 Commands out of sync; you can't run this command now
- PHP执行MYSQL存储过程报错:Commands out of sync; you can't run this command now 问题的解决
- 解决error:2014 Commands out of sync; you can't run this command now
- Mysql::Error: Commands out of sync; you can't run this command now: SHOW TABLES解决方案
- PHP执行MYSQL存储过程报错:Commands out of sync; you can't run this command now
- 解决error:2014 Commands out of sync; you can't run this command now
- ERROR (ProgrammingError) (2014, "Commands out of sync; you can't run this command now")
- python mysql 2014 Commands out of sync; you can't run this command now
- PHP+MySQL连续插入数据报错:Commands out of sync; you can't run this command now & 读取Excel数据并批量插入到数据中
- PHP执行MYSQL存储过程报错:Commands out of sync; you can't run this command now
- Commands out of sync; you can't run this command now
- 解决error:2014 Commands out of sync; you can't run this command now
- Commands out of sync; you can't run this command now
- error:2014 Commands out of sync; you can't run this command now
- MySQL一次执行多条语句的实现及常见问题(C API Commands out of sync; you can't run this command now)