Application runs on z/OS, DB2 v7.1
Say there's a table A with column C1 with values 1A, 2A, 3A and column C1 allows duplicates and has no index
Now the next insert is going to be 4A, what if two users tried to insert 4A at the same time? and there should be only one row under 4A
I know for UPDATES we can use CURSORS with FOR UPDATE OF and prevent such a scenario, but what happens for INSERTS? (other than locking the table in exclusive mode)
if I do a prior SELECT with RR for value 4A, will it hold the lock until I explicitly release it after the insert?
Any ideas????
TIA