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这个表(在同一语句中),即不能依据某字段值作判断再来更新某字段的值。spa 一、数据准备blog product表数据以下:ci laptop表数据以下
相关文章
相关标签/搜索