数据库:使用子查询创建表 create ...as....

--使用子查询创建表
--语法:

create table 表名 as 查询某表符合条件的选项

实例:

create table newdept
as
select ename,sal*12 annsal,hiredate from emp
where deptno=30

原文地址:https://www.cnblogs.com/maqiang123/p/7198712.html