📜  使用带有 as 的子句创建表 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:12.509000             🧑  作者: Mango

代码示例1
CREATE TABLE t
AS 
WITH some_data AS ( 
   SELECT 1 as some_value 
   FROM dual

   UNION ALL 

   SELECT 2 
   FROM dual
) 
SELECT * 
FROM some_data