I was looking to see how the lock will work in the delete and update commands, but I am a little confused.
So let's say a command will be run to update some rows in a table, but no rows has meet the conditions of the command. Will it still lock the table?
UPDATE mytable SET column1='xx' WHERE column1='yy' // but column1 is not 'yy' for any rows
What about the delete?