Re: How To Delete Older Records In Chunks
Hey Rick,
Thanks for your response!
The block that I am using is from the same Web Page that you have shared.
Unfortunately, the block is not executing.
----------I have taken and modified below block from your URL----------
@a = 0
LOOP
DELETE FROM tbl
WHERE id BETWEEN @a AND @a+999
AND ts < DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)
SET @a = @a + 1000
sleep 1 -- be a nice guy
UNTIL end of table
-----------------------------------------------------------------------
Subject
Written By
Posted
September 01, 2014 06:27AM
September 01, 2014 11:13AM
September 01, 2014 08:31PM
Re: How To Delete Older Records In Chunks
September 02, 2014 12:15AM
September 02, 2014 10:13AM
September 02, 2014 07:10PM
September 02, 2014 12:10AM
September 02, 2014 02:20AM
September 02, 2014 02:50AM
September 18, 2014 03:15AM
September 18, 2014 04:56PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.