select * from users where id=1;
select * from users where ? lock in share mode;
select * from users where ? for update;
insert into users values (…);
update users set ? where ?;
delete from users where ?;
select * from users where id = 1; delete from users where id = 1;