update xxx a
INNER JOIN xxx b on a.name = b.name
set a.id = b.id
where b.del = 0

上一篇 下一篇