Subject | Re: Best way to delete millions of rows |
---|---|
Author | |
Post date | 2016-10-31T17:58:23Z |
---In firebird-support@yahoogroups.com, <kragh.thomas@...> wrote :
Add same "where" condition as in "count" query
Regards,
Vlad
Hey
I have a database that needs some cleanup, in some tables i need to delete millions of rows. I performed the cleanup on a copy of the production database in a development environment, using:
delete from table where created < dateadd(-6 month to current_date)
followed by a count(*) on the table
Add same "where" condition as in "count" query
Regards,
Vlad