文章 2022-06-13 来自:开发者社区

Mysql - You can't specify target table '表名' for update in FROM clause 错误解决办法

背景在MySQL中,写SQL语句的时候 ,可能会遇到 You can't specify target table '表名' for update in FROM clause 这样的错误错误含义它的意思是说,不能先 select 出同一表中的某些值,再 update 这个表(在同一语句中),即不能依据某字段值做判断再来更新某字段的值。解决问题将select出的结果再通过中间表select一遍,....

Mysql - You can't specify target table '表名' for update in FROM clause 错误解决办法
文章 2022-03-04 来自:开发者社区

mysql delete where in,mysql delete where not in,You can't specify target table 'member_extend' for u

今天在项目中需要清理某个表的垃圾数据,通过delete from table where field in(子查询)失败,特来研究下删除下in和not in的问题(1).普通in/not in正确DELETE FROM member_extend WHERE uid IN ( 4, 5 ) DELETE FROM member_extend WHERE uid NOT IN ( 4, 5 )...

文章 2022-02-17 来自:开发者社区

MySQL 语法问题:You can‘t specify target table ‘xxx‘ for update in FROM clause. 原因及解决方法

           报错信息如下: [Code: 1093, SQL State: HY000] You can’t specify target table ‘bd_bankaccbas’ for update in FROM clause译文: 不能在 FROM 子句中指定目标表 ‘bd_bankaccbas’ 进行更新。有问题的....

文章 2022-02-17 来自:开发者社区

mysql 中 You can't specify target table for update in FROM clause错误

mysql 中 You can't specify target table for update in FROM clause错误 mysql中You can't specify target table <tbl> for update in FROM clause错误的意思是说,不能先select出同一表中的某些值,再update这个表(在同一语句中)。 update issu....

文章 2022-02-16 来自:开发者社区

MySQL can’t specify target table for update in FROM clause

 翻译:MySQL不能指定更新的目标表在FROM子句 源SQL语句: 1 2 3 SQL> delete from t_official_sys_user   where USER_NAME IN(SELECT USER_NAME FROM t_official_sys_user b...

文章 2022-02-16 来自:开发者社区

MySQL can’t specify target table for update in FROM clause

 翻译:MySQL不能指定更新的目标表在FROM子句 源SQL语句:   [sql] view plain copy    print? delete from t_official_sys_user   where USER_NAME IN(SELECT USER_N...

文章 2022-02-15 来自:开发者社区

MySQL 数据库 [Err] 1093 - You can't specify target table 'd_alarm' for update in FROM clause

更新数据库时,发生如下错误: [Err] 1093 - You can't specify target table 'd_alarm' for update in FROM clause SQL 语句为: UPDATE d_alarm SET alarmEndTime = '2015-09-11 11:00:24.17' WHERE (select case when measurePo...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

数据库

数据库领域前沿技术分享与交流

+关注
相关镜像