MySQL 修改报错 You can't specify target table 'tb_trade' for update in FROM clause
来源:互联网 发布:suse linux 网络配置 编辑:程序博客网 时间:2024/05/21 06:36
修改前
delete from tb_order where tradeId in (
select o.tradeId from tb_order o INNER JOIN tb_trade t where o.tradeId=t.id and receiverState='台湾'
)
修改后
delete from tb_order where tradeId in (
select o.tradeId from(select o.tradeId from tb_order o INNER JOIN tb_trade t where o.tradeId=t.id and receiverState='台湾'
)o
)
MySQL不能查询后直接update该数据表,可以先将查询结果再select保存后再查询
阅读全文
0 0
- MySQL 修改报错 You can't specify target table 'tb_trade' for update in FROM clause
- MySql报错: You can't specify target table 'table name' for update in FROM clause
- MySQL报错“ you can't specify the target table for ‘update’ in from clause”
- mysql报错You can't specify target table 'b' for update in FROM clause
- MySql报错: You can't specify target table 'table name' for update in FROM clause解决办法
- mysql中update ..where 字段 in(..) 报You can't specify target table for update in FROM clause错误
- mysql update语句问题:You can't specify target table 'user' for update in FROM clause
- 【MySQL】1093 You can't specify target table 'table name' for update in FROM clause
- Mysql - You can't specify target table 'dataproduct' 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 'dealer_admin' for update in FROM clause
- MySQL "You can't specify target table 'X' for update in FROM clause" 错误解决方法
- Mysql 错误 Code: 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 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错误
- 【转载】对springMVC的简单理解
- TCP三次握手与四次挥手
- oracle 10g正则表达式REGEXP_LIKE用法
- 迭代方法总结
- 运营商劫持
- MySQL 修改报错 You can't specify target table 'tb_trade' for update in FROM clause
- 表单提交导入文件
- TextView+Spinner的使用
- 反转链表
- 端口号及URG和PSH的区别
- 事物的特性
- c++入门
- SpringBoot整合SpringSecurity,SESSION 并发管理,同账号只允许登录一次
- 浏览器缓存机制