sql server - Issue with CTE syntax -
what issue below code?
with cte2 ( select 1 id union select 2 ), cte3 ( select * cte2 ) select * cte3
it fails syntax error.
you dont need with
in code.
when using multiple ctes, can separate them comma , dont need multiple with
s.
with cte2 ( select 1 id union select 2 ), cte3 ( select * cte2 ) select * cte3
Comments
Post a Comment