use anhei_game;

delimiter //
CREATE procedure drop_home_table()
BEGIN
	DECLARE `@i` int(11);
	DECLARE `@sqlstr` varchar(2560);
	SET `@i`= 1;
	WHILE `@i` <= 100 DO
		SET @sqlstr = CONCAT("drop table tbworld_home_",`@i`,";");
		prepare stmt from @sqlstr;
		execute stmt;
		SET `@i` = `@i` + 1;
	END WHILE;
END;

call drop_home_table();
drop procedure drop_home_table;
//
delimiter ;