SELECT INTO USING UNION QUERY

后端 未结 5 1627
轻奢々
轻奢々 2020-12-23 11:11

I want to create a new table in SQL Server with the following query. I am unable to understand why this query doesn\'t work.

Query1: Works

SELECT * F         


        
5条回答
  •  星月不相逢
    2020-12-23 11:50

    select *
    into new_table
    from table_A
    UNION
    Select * 
    From table_B
    

    This only works if Table_A and Table_B have the same schemas

提交回复
热议问题