select id from table where .... for update
update table set column=n where id=id_value
与
update table set column=n where ....有区别么?
update table set column=n where id=id_value
与
update table set column=n where ....有区别么?
update 是更新语句,与 select for update 完全是两种数据库操作
update table set column=n where id=id_value
for update 查询锁定记录的,不允许修改表中任何记录。
update 只是一个更新语句。