Table ‘xxx‘ is specified twice, both as a target for ‘UPDATE‘ and as a separate source for data 程序员文章站 2022-05-26 17:55:57 ... 文章目录 一、MySQL异常 二、解决 一、MySQL异常 在UPDATE或DELETE时可能出现的SQL异常,根据本表查询对表进行操作或修改。 二、解决 在关于本表查询的条件中,嵌套一层临时表。 UPDATE `xxx` SET `sort_no` = 1 WHERE `parent_id` IN(SELECT id FROM (SELECT id FROM `xxx`)a) ; 相关标签: # MySQL 数据库 数据库 mysql sql exception 上一篇: cannot be used as a grouping expression because its data type map<string,string> is not an orderable 下一篇: 超好用的写文本工具Markdown的一些语法 推荐阅读 Table ‘m‘ is specified twice, both as a target for ‘UPDATE‘ and as a separate source for data Table ‘xxx‘ is specified twice, both as a target for ‘UPDATE‘ and as a separate source for data