I use SQL Server and have simple table:
Person (ID bigint, Name nvarchar(255))
It contains 1000 rows (for example). I'm using this SQL query:
Update Person
Set Name = 'Jason'
Where Id = 100
I want to understand how SQL Server will do read/write locking. Will it block one row (which I'm updating) or will it block all Person
table?
Will the situation change if I will use query?
Update Person
Set Name = 'Jason'
Where Name = 'Piter'