【Mysql】"You can't specify target table 'XX' for update in FROM clause"解决方法
文章目录1.问题描述2.解决方法
1.问题描述
在联合两张表进行更新的时候,出现了以下问题:
You can't specify target table 'XX' for update in FROM clause
大意是: 不能在from子句中指定表“xx”,一般这个XX是需要更新的表名。
2.解决方法
来源stackoverflow的解决方法如下:
update x
set availa...
原创
2020-03-27 17:08:30 ·
337 阅读 ·
0 评论