sql错误1093

Searching…

blog.csdn.net

1093 - You can‘t specify target table 报错原因分析及解决办法

报错原因分析 MySQL 报错 1093 - You can't specify target table 通常出现在尝试在 UPDATE 或 DELETE 语句的 FROM 子句中直接引用要更新或删除的目标表。这是因为 MySQL 不允许在同一条 SQL 语句中直接对一个表进行更新或删除操作,同时又通过子查询引用该表。 具体原因 直接引用目标表: 当你在 UPDATE 或 DELETE 语句 ...

www.geeksforgeeks.org

MySQL Can't Specify Target Table For Update in FROM Clause

Feb 12, 2024 · Example of Resolving MySQL Update Error: Target Table in FROM Clause Example 1: Attempting to Update with Self-Referencing Subquery Here in this example, we have created the database as the db_info Cons...