标签:int 连接 from tables sql 数据库 name less tab
CREATE TEMPORARY TABLE SalesSummary (
product_name VARCHAR(50) NOT NULL,
total_sales DECIMAL(12,2) NOT NULL DEFAULT 0.00,
avg_unit_price DECIMAL(7,2) NOT NULL DEFAULT 0.00,
total_units_sold INT UNSIGNED NOT NULL DEFAULT 0
);
INSERT INTO SalesSummary
(product_name, total_sales, avg_unit_price, total_units_sold)
VALUES
(‘cucumber‘, 100.25, 90, 2);
SELECT * FROM SalesSummary;
使用 DROP TABLE 命令来手动删除临时表。
DROP TABLE SalesSummary;
SELECT * FROM SalesSummary; 1146 - Table ‘test4.salessummary‘ doesn‘t exist
标签:int 连接 from tables sql 数据库 name less tab
原文地址:https://www.cnblogs.com/Stephanie-boke/p/11675200.html