语法: select x into new_tableName from ori_tableName 例如: SELECT [site] ,[day] ,[val]/31.4 [val] into t_init FROM [RainFactor].[dbo].[t_factor] order by [site],[day]…
------在SQL中,将查询的结果创建为新表是如下这样的 select distinct t1.column1,.t2.column2 into table3 from table1.t1 join table2.t2 on(t1.column1=t2.column3); ------在Orale中,完成同样的过程,是这样的 Create table ed as( select distinct e.deptno,d.loc from emp e join dept d on (d.deptn…
1.sqlserver中,使用: select * into tab_new from tab_old SELECT * into anzhiresult from (select * from factdownloads_new where storename='anzhi') b 复制表结构句型,跨数据库 --复制结构+数据 select * into 数据库名.dbo.新表名 from 数据库名.dbo.原表名 --只复制结构 select * into 数据库名.dbo.新表名 from…