On an Oracle DB, if I have a table with an arbitrary number of rows. What is the simplest way of running an update query that will update the first 15 rows, then wait 2 seconds, then update the next 15 rows, then wait 2 seconds, then update the next 15 rows... and so on?
Asked
Active
Viewed 72 times
1
-
3I'm more interested in another question: Why do you want to do that? – dnoeth Jan 18 '16 at 12:44
1 Answers
5
Write A PLSQL block and use dbms_lock.sleep
.
Example:
Declare
abc varchar(50);
.
.
.
begin
for i ...... loop
.
.
dbms_lock.sleep(2);
end loop;
end;
/

Shariar Imtiaz
- 483
- 1
- 5
- 15