mysql中错误:1093-You can’t specify target table for update in FROM clause的解决方法
来源:互联网 发布:淘宝客服介入电话 编辑:程序博客网 时间:2024/06/08 08:37
显而易见了,说不能对进行查询操作的表进行update操作,也就说我们的where条件中进行了子查询,并且子查询也是针对需要进行update操作的表的,mysql不支持这种查询修改的方式。
参见:http://www.jb51.net/article/102784.htm
实现sql语句如下
DELETE FROM `1001aa_takeaway_competition_csv` WHERE id IN (SELECT b.tt FROM (SELECT MAX(a.id) AS tt FROM `1001aa_takeaway_competition_csv` a WHERE (a.`origin`,a.`destination`) IN (SELECT `origin`,`destination` FROM `1001aa_takeaway_competition_csv` GROUP BY `origin`,`destination` HAVING COUNT(*) > 1) GROUP BY a.`origin`,a.`destination`) AS b)
0 0
- mysql错误:1093-You can’t specify target table for update in FROM clause的解决方法
- mysql中You can’t specify target table for update in FROM clause错误解决方法
- mysql中You can’t specify target table for update in FROM clause错误解决方法
- mysql 中 You can't specify target table <tbl> for update in FROM clause 错误解决方法
- mysql中You can’t specify target table for update in FROM clause错误解决方法
- mysql中You can’t specify target table for update in FROM clause错误解决方法
- mysql中You can’t specify target table for update in FROM clause错误解决方法
- mysql中You can’t specify target table for update in FROM clause错误解决方法
- mysql中You can’t specify target table for update in FROM clause错误解决方法
- mysql中错误:1093-You can’t specify target table for update in FROM clause的解决方法
- mysql 出现You can't specify target table for update in FROM clause错误的解决方法
- MySQL "You can't specify target table 'X' for update in FROM clause" 错误解决方法
- mysql中You can't specify target table for update in FROM clause错误
- mysql中You can't specify target table for update in FROM clause错误
- mysql中You can't specify target table for update in FROM clause错误
- mysql中You can't specify target table for update in FROM clause错误
- mysql中You can't specify target table for update in FROM clause错误 转
- mysql中You can\'t specify target table for update in FROM clause错误
- java中应用Stack进行算术运算
- Source Insight用法
- 【JAVA面试题系列一】面试题总汇--JAVA基础部分
- iOS性能测试
- linux中一些常用的命令
- mysql中错误:1093-You can’t specify target table for update in FROM clause的解决方法
- c#设计模式==建造者模式
- Windows下Nginx的启动、停止等命令
- 第十三届北京师范大学程序设计竞赛决赛训练总结2017/5/8
- GIT、GITHUB、GITLAB简洁
- 【基于SSH框架的个人博客系统04】DAO层,Service层与Action层
- Java入门学习-理解I/O
- QSignalMapper类使用
- Struts2拦截器介绍