How to insert rows with structure from one table to another table?

后端 未结 3 514
耶瑟儿~
耶瑟儿~ 2021-01-29 02:00

What is the query in SQL Server to insert rows with structure from one table to another table?

3条回答
  •  广开言路
    2021-01-29 02:03

    Sounds like you want something like this:

    INSERT INTO DestTable (Column1,COlumn2)
       SELECT Column1, Column2
       FROM SourceTable
    

提交回复
热议问题