SELECT table_name
FROM INFORMATION_SCHEMA.TABLES
WHERE table_name LIKE '%table_%'
DELETE
FROM `table_xx`
WHERE `id` = 0
DELETE
FROM (SELECT table_name
FROM INFORMATION_SCHEMA.TABLES
WHERE table_name LIKE '%table_%')
WHERE id = 0