Hello world,
(excuse my English) I have to empty a daily a table that has 50,000,000 record and that stores data by "date". Whenever the empties must remain only the last 3 days of data.
With DELETE
(DELETE FROM SCHEMA.TABLE WHERE DATE(AGG_TIMEST AMP) < DATE(CURRENT TIMESTAMP) - 3 DAY;).
The trasaction log are filled and delete fails. Trauncate the table can not be conditioned.
how can I do?
(excuse my English) I have to empty a daily a table that has 50,000,000 record and that stores data by "date". Whenever the empties must remain only the last 3 days of data.
With DELETE
(DELETE FROM SCHEMA.TABLE WHERE DATE(AGG_TIMEST AMP) < DATE(CURRENT TIMESTAMP) - 3 DAY;).
The trasaction log are filled and delete fails. Trauncate the table can not be conditioned.
how can I do?
Comment