software development blog
;WITH Numbers AS
(
SELECT n = 1
UNION ALL
SELECT n + 1
FROM Numbers
WHERE n+1 <=10
)
SELECT
n
OPTION (MAXRECURSION 1000)
Hiç yorum yok:
Yorum Gönder