Create Table from View

后端 未结 9 2134
一整个雨季
一整个雨季 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:54
    INSERT INTO table 2
    SELECT * FROM table1/view1
    
    0 讨论(0)
  • 2020-12-12 19:55

    If you want to create a new A you can use INTO;

    select * into A from dbo.myView
    
    0 讨论(0)
  • 2020-12-12 19:56
    Select 
        MonthEndDate MED,  
        SUM(GrossBalance/1000000) GrossBalance,
        PortfolioRename PR 
    into 
        testDynamic 
    from 
        Risk_PortfolioOverview  
        Group By MonthEndDate, PortfolioRename
    
    0 讨论(0)
提交回复
热议问题