我想把-select--from--as--where--查询出来的结果作为一个新的表在从这个新表里查询内容要怎么写呀
您可以使用以下语法将查询结果作为新的表:
CREATE TABLE new_table_name AS
SELECT column1, column2, ...
FROM table_name
WHERE condition;
然后,您可以使用以下语法从新表中查询内容:
SELECT column1, column2, ...
FROM new_table_name
WHERE condition;
请将上述语法中的“column1”,“column2”等替换为您要查询的列名,将“table_name”替换为原始表的名称,并将“condition”替换为您要应用的 WHERE 子句。
原文地址: http://www.cveoy.top/t/topic/rWi 著作权归作者所有。请勿转载和采集!