加上for update 就可以了,如: select * from table for update
行级锁 select * from tbname where ... for update;
select * from 表 for update
select * from 表 for update
select * from 表 for update where recordID=ID 的用法是:当一个客户段执行了这条语句,在修改这条语句之前,其他客户端如果也执行select * from 表 for update where recordID=ID是查不出东西的,所以可以起到锁定的作用,怎样实现由你的具体业务需求而定
select * from table for update
select * from tbname where ... for update;