文章 2023-11-09 来自:开发者社区

MySQL语句执行报错You can‘t specify target table for update in FROM clause

含义You can’t specify target table for update in FROM clause:不能在同一表中查询的数据作为同一表的更新数据。例子update t_blog set views = ( select views from t_blog where id = ' 35' + 1 ) where id = ' 35'这句语句是想要找出t_blog表中的vi...

MySQL语句执行报错You can‘t specify target table for update in FROM clause
文章 2023-10-14 来自:开发者社区

【MySQL异常】1093 - You can‘t specify target table ‘daily_job‘ for update in FROM clause

一、背景描述通过sql语句想把这个表里的数据查询出来,然后根据查询出来的id把同一张表里的数据删除,如下是会报错的sql语句:DELETE FROM daily_job WHERE id IN ( SELECT id FROM daily_job WHERE create_user = '***' );在执行 mysql 语句时,出现 1093 - You can't specify...

文章 2023-07-21 来自:开发者社区

【问题处理】—— 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 cannot update a table and select directly from the same table in a subquery. You can work a....

【问题处理】—— Mysql : You can‘t specify target table for update in FROM clause
文章 2022-05-05 来自:开发者社区

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 错误解决办法
文章 2021-12-14 来自:开发者社区

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’ 进行更新。有问题的....

文章 2017-11-08 来自:开发者社区

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...

文章 2016-10-12 来自:开发者社区

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...

文章 2016-05-18 来自:开发者社区

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...

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

产品推荐

数据库

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

+关注
相关镜像