DROP TEMPORARY TABLE IF EXISTS data;
即使我在顶部有检查,我是否需要在存储过程的末尾添加?有性能影响吗?
CREATE DEFINER=`TEST`@`%` PROCEDURE `TEST`() BEGIN
DROP TEMPORARY TABLE IF EXISTS data;
CREATE TEMPORARY TABLE data AS
...
END;
DROP TEMPORARY TABLE IF EXISTS data;
即使我在顶部有检查,我是否需要在存储过程的末尾添加?有性能影响吗?
CREATE DEFINER=`TEST`@`%` PROCEDURE `TEST`() BEGIN
DROP TEMPORARY TABLE IF EXISTS data;
CREATE TEMPORARY TABLE data AS
...
END;