我是采用语句将 查询后的数据保存到一个新表中

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

select *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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-05
  • 2022-12-23
  • 2023-03-11
  • 2022-12-23
  • 2022-02-23
  • 2021-07-13
相关资源
相似解决方案