insert into … select 会导致死锁问题

250 阅读1分钟

insert into A select * from B

加锁规则是:A表锁,B逐步锁(扫描一个锁一个)。