无法使用临时表调用存储过程:
DELIMITER $$
DROP PROCEDURE IF EXISTS `summary_daily_reports`$$
CREATE PROCEDURE `summary_daily_reports`()
BEGIN
DROP TEMPORARY TABLE IF EXISTS `both_daily_repots`;
CREATE TEMPORARY TABLE both_daily_repots(
`date` VARCHAR(10),
balance DOUBLE,
balance_ua DOUBLE
) DEFAULT CHAR SET utf8;
INSERT INTO both_daily_reports VALUES ('2012-01-01',0,0);
SELECT * FROM both_daily_repots;
END $$
然后我调用程序并得到错误“表'report_cfd.both_daily_reports'不存在”;