DELETE FROM score WHERE id NOT IN ( SELECT MIN(id) FROM score GROUP BY NAME ) code
报错: ci
查询:delete FROM score where id not in ( select min(id) from score group by name ) 错误代码: 1093
You can't specify target table 'score' for update in FROM clause
执行耗时 : 0 sec
传送时间 : 0 sec
总耗时 : 0 sec
---------------------------------------------------
get
错误提示就是说,不能先select出同一表中的某些值,再update这个表(在同一语句中)