Quantcast
Channel: Questions in topic: "cte"
Viewing all articles
Browse latest Browse all 75

In below recursive CTE script, the first statement how many times will run??

$
0
0
with cte(asd,length1) as ( select asd=CAST('ABC'AS VARCHAR(300)), LEN('ABCadsfasdf') --/How many times this statement will run??/ union all select CAST(asd+'ZYXWVU'AS VARCHAR(300)) , LEN(asd) from cte WHERE length1 < =300 )select asd from cte

Viewing all articles
Browse latest Browse all 75

Trending Articles