I have ~1000 tables that start with the same prefix :
table_prefix_{SOME_ID}
(i can take the ids from another table)
what is the fast way to loop over all the tables in mysql and do :
ALTER TABLE `table_prefix_{some_id}` ADD INDEX `fields` (`field`)