CREATE TEMPORARY TABLE test_info ( test_name VARCHAR(50) NOT NULL, test_totail DECIMAL(12,2) NOT NULL DEFAULT 0.00, test_avg DECIMAL(7,2) NOT NULL DEFAULT 0, test_sum INT UNSIGNED NOT NULL DEFAULT 0 ) -- 创建临时表 INSERT INTO test_info(test_name,test_totail,test_avg,test_sum) VALUES('啦啦',0.56,32,109) -- 往临时表里面添加信息 SELECT * FROM test_info DROP TEMPORARY TABLE test_info -- 删除临时表