sql话语:for update 的作用

sql语句:for update 的作用锁字段 也就是从你select语句执行后inventory 表的quantity 字段被锁定 别人将

sql语句:for update 的作用

锁字段 也就是从你select语句执行后inventory 表的quantity 字段被锁定 别人将不能进行修改操作 直到你进行update commit后才能修改