You can't specify target table '表名' for update in FROM clause 翻译为:不能先select出同一表中的某些值,再update这个表(在同一语句中) 实例: 表:result 表student 表:grade ...
目标是批量更新目标表部分字段的数据 操作内容: .创建临时表 .把数据存入临时表 .把临时数据中的数据存入目标表 .删除临时表 出现问题: 原因是update的字段在targetTableXXX中不存在 . ...
2020-04-07 16:21 0 6304 推荐指数:
You can't specify target table '表名' for update in FROM clause 翻译为:不能先select出同一表中的某些值,再update这个表(在同一语句中) 实例: 表:result 表student 表:grade ...
update语句中包含的子查询的表和update的表为同一张表时,报错:1093-You can’t specify target table for update in FROM clause mysql不允许update目标表和子查询里面的表为同一张表 错误sql:UPDATE ...
在mysql执行下面语句时报错: 括号里的子查询和外面的upadate语句均没错,但加在一起便报错了。 那是因为那串英文错误提示就是说, 不能先select出同一表中的某些值, 再update这个表(在同一 ...
target table 'sc' for update in FROM clause 意思是不能在 ...
mysql在执行删除、更新的时候,可能会出现这样的错误,比如你写了类似下面的sql: or 这个时候就会出现Table 'xxx' is specified twice这样的错误,不知道mysql为什么会做这样的冻结,知道的大神请给个链接。 要解决这个问题很简单 ...
update语句中包含的子查询的表和update的表为同一张表时,报错:1093-You can’t specify target table for update in FROM clause mysql不允许update目标表和子查询里面的表 ...
有一个表示地区的表,表结构与数据大概如下表。 ID NAME PARENT_ID 1 中国 ...
这篇文章主要介绍了mysql中You can’t specify target table for update in FROM clause错误解决方法,需要的朋友可以参考下 MySQL中You can't specify target table for update ...