insert into newtable (field1,field2) select a.field1,b.field2 from oldtable a, dbo.oldview b where a.field1=b.field1
如果该表已存在: insert 另一个表 Select f1,f2,f3 from 一个表 where 1=1 or insert 另一个表 Select f1,f2,f3 from 一个视图 where 1=1如果该表不存在:Select f1,f2,f3 into 另一个表 from 一个表 where 1=1 or Select f1,f2,f3 into 另一个表 from 一个视图 where 1=1
insert into 已经存在的表(字段列表) select @常量,其他列列表 from 视图或: select 字段名=@常量,其他列列表 into 生成的新表名 from 视图
select a.field1,b.field2
from oldtable a, dbo.oldview b
where a.field1=b.field1
insert 另一个表 Select f1,f2,f3 from 一个表 where 1=1
or
insert 另一个表 Select f1,f2,f3 from 一个视图 where 1=1如果该表不存在:Select f1,f2,f3 into 另一个表 from 一个表 where 1=1
or
Select f1,f2,f3 into 另一个表 from 一个视图 where 1=1
select @常量,其他列列表 from 视图或:
select 字段名=@常量,其他列列表 into 生成的新表名 from 视图