数据被锁

在执行sql语句时,相关的更新或删除操作时,会执行很长时间都没有执行成功,有可能这条数据被上锁了,检测数据是否被上锁请执行以下语句:

select * from u_user_info a where a.user_name='test01'  for update nowait;

猜你喜欢

转载自liuzhiqiang19890403.iteye.com/blog/2188696