mysql You can't specify target table 'xxx' for update in FROM clause的解决
Posted hoge
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql You can't specify target table 'xxx' for update in FROM clause的解决相关的知识,希望对你有一定的参考价值。
DELETE from sp_goodscontent where goodsId in (SELECT t.goodsId from ( SELECT goodsId FROM sp_goodscontent GROUP BY goodsId HAVING count(1)>1 ) t)
之前的sql 查询,需要改成中间临时表再查询
以上是关于mysql You can't specify target table 'xxx' for update in FROM clause的解决的主要内容,如果未能解决你的问题,请参考以下文章
MySQL : You can't specify target table 'Person' for update in FROM clause
mysql中You can't specify target table for update in FROM clause
Mysql -- You can't specify target table 'address' for update in FROM clause
mysql:You can't specify target table 'bpm_tksign_data' for update in FROM clause
mysql uodate 报错 You can't specify target table '**' for update in FROM clause
mySQL: delete 语句报错 You can't specify target table 'student' for update in FROM clause(示例