原文:mysql出现“ You can't specify target table '表名' for update in FROM clause”解决方法

You can t specify target table 表名 for update in FROM clause 翻译为:不能先select出同一表中的某些值,再update这个表 在同一语句中 实例: 表:result 表student 表:grade 要求:给大一成绩不合格的分数加 分 思路: 第一步:查询出大一成绩不合格的成绩集合 SELECT res.StudentResultFRO ...

2020-09-03 00:54 0 733 推荐指数:

查看详情

mysql出现You cant specify target table for update in FROM clause

mysql执行下面语句时报错: 括号里的子查询和外面的upadate语句均没错,但加在一起便报错了。 那是因为那串英文错误提示就是说, 不能先select出同一中的某些值, 再update这个(在同一 ...

Mon Jul 22 17:43:00 CST 2019 0 1492
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM