Awsome, thank you...
That is a HUGE DB, that must have taken weeks to make, and less than 2 seconds to delete.... and that worked, and took 900,000+ out of the DB
Fantastic job though, great hack...
Quote:
Yesterday at 08:55 PM lemarsu said this in Post #339
[B]Etcher,
To delete everything that is not Canada I suggest you do the following:
As the biggest table is weather_city, just concentrate on that one. You will need to run the delete statement bellow that will get rid of 36721 rows, NOTE THIS WILL GET RID OF EVERY CITY IN THE WORLD APPART FROM CANADA the countries will still be there if you need them in the future.
[b]ps I have not tested the SQL
Code:
DELETE FROM `weather_city` WHERE `accid` NOT LIKE 'CAXX%'
|