mysql 快清表中的数据
DELIMITER //
CREATE PROCEDURE EmptyTables2()
BEGIN
DECLARE i INT DEFAULT 0;
WHILE i < 65 DO
SET @sql = CONCAT('TRUNCATE TABLE fileowner_', i);
PREPARE stmt FROM @sql;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
SET i = i + 1;
END WHILE;
END //
DELIMITER ;
CALL EmptyTables2();