Can I use multiple “with”?

前端 未结 2 1601
耶瑟儿~
耶瑟儿~ 2020-12-22 17:42

Just for example:

With DependencedIncidents AS
(
    SELECT INC.[RecTime],INC.[SQL] AS [str] FROM
    (
        SELECT A.[RecTime] As [RecTime],X.[SQL] As [S         


        
2条回答
  •  感情败类
    2020-12-22 18:04

    Yes - just do it this way:

    WITH DependencedIncidents AS
    (
      ....
    ),  
    lalala AS
    (
      ....
    )
    

    You don't need to repeat the WITH keyword

提交回复
热议问题