How can I insert values into a table, using a subquery with more than one result?

前端 未结 6 958
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 05:26

I really would appreciate your help.

Probably it\'s a quite simple problem to solve - but I\'m not the one .. ;-)

I have two tables in SQL Server:

6条回答
  •  遥遥无期
    2020-11-28 06:03

    the sub query looks like

     insert into table_name (col1,col2,....) values (select col1,col2,... FROM table_2 ...)
    

    hope this help

提交回复
热议问题