'CREATE VIEW' must be the first statement in a query batch

后端 未结 5 680
逝去的感伤
逝去的感伤 2020-12-09 15:36

Basically its what the title says. This is my code.

USE Assignment2;
GO

/* Player View (2 marks)
    Create a view which shows the following details of all          


        
5条回答
  •  时光说笑
    2020-12-09 16:24

    put GO after PRINT 'Creating Player View' and it should work:

    PRINT 'Creating Player View'
    GO
    
    CREATE VIEW playerView AS
    

提交回复
热议问题