I want to make a lock mechanism like that, but I'm not sure it possible or not. First, Lock a row in temporary table(with select statement and output data to application) Next, I make some other transactions(Insert, Update to another table) And then release the locked row.
In that time, Any select statement that want to get data from locked row should wait