SQL-Server: Incorrect syntax near the keyword 'with'. If this statement is a common table expression

前端 未结 4 1367
一向
一向 2021-02-20 17:39
create table #temp
(
  pName Varchar(20),
  DateBegin DateTime,
  DateEnd DateTime
)

Insert Into #temp(pName, DateBegin, DateEnd)
Values(\'Player1\', \'01/04/2012\', \'         


        
4条回答
  •  迷失自我
    2021-02-20 18:19

    I had the same issue with SQL server 2017. Use semicolon before the WITH statement as follows.

    ;WITH
    

提交回复
热议问题