1.创建新的表
select * 
--创建新的表
INTO tblNew
--创建新的表
From sysobjects 
where xtype='P'2.插入数据到已经存在的表
INSERT INTO tblExists
SELECT * FROM sysobjects
WHERE xtype='V'

解决方案 »

  1.   

    1、插入一个新的表(select * into t2 from t1):
    e.g.
    select col1,col2,col3.. into newTable from oldTable where ....
    select * into newTable from oldTable where ...
    select identity(int,1,1) id,col1,col2... into newTable from oldTable where ... 2、插入一个已经存在的表(insert into ..):
    e.go.
    insert t2(col1,col2,...) select col1,col2... from t1 where ...
    ()里面需要填写字段名字。
      

  2.   

    插入到臨時表中:
       SELECT * INTO #TEMP1 FROM 你的表 查看臨時表中的數據:
       Select * from #temp1
      

  3.   

    在SQL server中怎么将查询得到的结果保存到另外一个表中去?insert 另一个表 (aa,bb) select aa,bb from xx where ....