1.適用條件
當查詢某些記錄時候,不希望其他用戶對此記錄進行修改;
2.適用方法
select a.code,a.name from store a where code='0173' for update;
rollback /commit ; ----解除鎖定
3.for update nowait 與for update 區別
for update nowait 不會等待資源釋放,直接提示資源占用;
for update 等待資源釋放,再執行。
1.適用條件
當查詢某些記錄時候,不希望其他用戶對此記錄進行修改;
2.適用方法
select a.code,a.name from store a where code='0173' for update;
rollback /commit ; ----解除鎖定
3.for update nowait 與for update 區別
for update nowait 不會等待資源釋放,直接提示資源占用;
for update 等待資源釋放,再執行。
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。