Insert into create new table

后端 未结 4 574
没有蜡笔的小新
没有蜡笔的小新 2021-02-13 01:39

I have two large tables and want to combine all of the column names (not as a view) into a new table.

I do not have permission to right click on each t

4条回答
  •  醉梦人生
    2021-02-13 02:05

    If you have create rights you should be able to use an:

    INSERT INTO MyTable SELECT statement to do this.

    EDIT:

    I had it wrong

    SELECT * INTO MYNEWTABLE FROM MYSOURCETABLE
    

提交回复
热议问题