You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
381 B

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 ;