可以通过select * from where for update加锁,暂时锁定该表.