MYSQL 临时表 #1093 - You can't specify target table 'dealer_admin' for update in FROM clause
2013-06-21 15:22
573 查看
目前在写程序时,在处理MYSQL时遇到一个问题,问题如下
此时会报:#1093 - You can't specify target table 'dealer_admin' for update in FROM clause
在网上找了一个暂时可以解决的方法
update dealer_admin set is_super_admin=1 where id in (select id from dealer_admin group by dealer_id );
此时会报:#1093 - You can't specify target table 'dealer_admin' for update in FROM clause
在网上找了一个暂时可以解决的方法
create temporary table tmp (id int); insert into tmp (id) select id from dealer_admin group by dealer_id; update dealer_admin set is_super_admin=1 where id in (select id from tmp);
相关文章推荐
- MYSQL 1093 - You can't specify target table '' for update in FROM clause
- (原)mysql错误1093 You can't specify target table 'wms_cabinet_form' for update in FROM clause
- mysql 一个较特殊的问题:You can't specify target table '表名' for update in FROM clause
- mysql 一个较特殊的问题:You can't specify target table 'wms_cabinet_form' for update in FROM clause
- mysql删除数据库重复数据,#1093 - You can't specify target table 'blur_article' for update in FROM clause 错误解决方
- MySQL报错“ you can't specify the target table for ‘update’ in from clause”
- ERROR 1093 (HY000): You can't specify target table 'b' for update in FROM clause
- 【mysql 】sql删除重复记录 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 'basic_data' for update in FROM clause)
- mysql 一个较特殊的问题:You can't specify target table 'wms_cabinet_form' for update in FROM clause
- mysql 一个较特殊的问题:You can't specify target table 'wms_cabinet_form' for update in FROM clause
- [Django](1093, "You can't specify target table 'fee_details_invoices' for update in FROM clause") 错误
- You can't specify target table 'A' for update in FROM clause
- Mysql 错误 Code: 1093. You can't specify target table for update in FROM clause
- You can't specify target table 'wms_cabinet_form' for update in FROM clause
- 处理MySQL删除数据时Error Code: 1093. 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
- You can't specify target table 'A' for update in FROM clause
- mysql错误:1093-You can’t specify target table for update in FROM clause的解决方法