- 博客(1)
- 收藏
- 关注
原创 解决使用MySQL进行update时报错: You can't specify target table '表名' for update in FROM clause
使用MySQL进行update时出现错误: MySQL 中 You can’t specify target table ‘表名’ for update in FROM clause 翻译:不能先select出同一表中的某些值,再update这个表(在同一语句中),即不能依据某字段值做判断再来更新某字段的值。 出现问题语句: update sc set score=(select avg(sc....
2020-03-09 13:55:07
2218
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人