Not sure why you need this. anyway MySQL has no such feature. but if you want really do that, execute following query and execute each rows.
SELECT CONCAT('ALTER TABLE TableA DROP ', field_names, ';') FROM TableB;
for examples with PHP, (all error check is omitted)
$query = "SELECT CONCAT('ALTER TABLE TableA DROP ', field_names, ';') AS stmt FROM TableB;";
$result = mysqli_query($query);
while ($row = mysqli_fetch_assoc($result))
{
mysqli_query($rows['stmt']);
}