oracle的行级锁与表级锁

1、行级锁(tx锁,也叫事务锁)在操作DML(create,insert,update)语句时,oracle会自动加上行级锁,在select * from table for update 【of column】【nowait|wait 3】时,oracle也会自动加锁     建议(1)一般在for update 时加nowait,这样就不用等待其他事务执行了,一判断有事务,立马抛出错误。   
相关文章
相关标签/搜索