1093 - You can't specify target table 'api' for update in FROM clause
翻译:
您不能在 FROM 子句中指定目标表 ‘Table’ 进行更新
白话:
你不能先查询这个表得出的结果作为条件来修改这张表的数据。
例:
update a set name = null where id in (
select id from a where id>3)
修改:
update a set name = null where id in (
select id from (select id from a where id>3) b)