输入banner图图片脚本导航/分类

SQL Server如何将查询的内容保存到新的sql 表中

*into NewTable from Table --插入新表的语句 into tablename


2)采用insert table语句,需要保存到的这个新表不需要提前创建

CREATE TABLE [dbo].[NewTable](
    [fdSequenceID][bigint] not null,
    [fdInnerTime][date] not null,
    [fdTime][date] not null,
    [fdData][float] null,
    [fdState][int] not null,
    [fdUpdateTime][datetime] not null,
    [fdRate] [float] null,
    [fdCreateTime][datetime] not null
)


insert NewTable select * from Table

 

SQL Server如何将查询的内容保存到新的sql 表中

标签:style   time   span   stat   name   not   sel   tab   dup