I want to select some rows and immediately update a process column in that row as ‘Y’ before another thread comes and picks it up.
How to do this in Oracle
Initially I had a select for update query which isnt working. what are the ways to achieve this in multi threading mode.
I am using Oracle and couldnt find answers related to oracle in this forum?
Please help
Here’s a simple way of doing it:
Create a table called test:
Insert data into table test:
Run PL/SQL block:
Result:
You should see all rows with col_to_update ‘BOB’ being updated to ‘UPDATE’;