software development blog
;with CTE as(
SELECt ID=1,
GID=NEWID()
UNION ALL
SELECT ID+1,
NEWID() FROM CTE WHERE ID<100
)
SELECT
*
FROM CTE OPTION (MAXRECURSION 100)
that’s all
Hiç yorum yok:
Yorum Gönder