I found another question on this issue, but I could not use its solutions, so I thought I would ask with more clarity and detail.
I have a large MySQL database representing the vBulletin forum. For several years, an error occurred on this forum at each submission, each time creating a new table named aagregate_temp_1251634200 , aagregate_temp_1251734400 , etc. Etc. The database contains about 20,000 of these tables, and I want to delete all of them.
I want to issue a command that says the equivalent of DROP TABLE WHERE TABLE_NAME LIKE 'aggregate_temp%'; .
Unfortunately, this command does not work, and the Google results for this problem are full of elaborate stored procedures that are different from my understanding, and they all seem to be adapted to the more complex problems of different posters.
Is it possible to write a simple statement that splits multiple tables based on a name like match?
sql mysql
Greentriangle
source share