Create Table from View

后端 未结 9 2141
一整个雨季
一整个雨季 2020-12-12 19:08

I have a view that I want to create a table from in SQL Enterprise Manager, but I always get an error when I run this query:

CREATE TABLE A 
AS
(SELECT top 1         


        
9条回答
  •  既然无缘
    2020-12-12 19:36

    Looks a lot like Oracle, but that doesn't work on SQL Server.

    You can, instead, adopt the following syntax...

    SELECT
      *
    INTO
      new_table
    FROM
      old_source(s)
    

提交回复
热议问题