当前位置:Gxlcms > 数据库问题 > SQL Server如何将查询的内容保存到新的sql 表中

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

时间:2021-07-01 10:21:17 帮助过:77人阅读

*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   

人气教程排行