原文: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-2026 CODEPRJ.COM