我想使用新的选择函数
在递归CTE中生成一些记录 ;With Cte As
(
Select
Id=1
To = Cast ('India' as varchar(10))
Union All
Select
Id +1
,To= Cast( Choose(ID,'India','Belgium') as varchar(10))
From Cte
Where Id < 10
)
Select * from Cte
预期输出
Id PlayerName BelongTo
1 Player1 India
2 Player2 Belgium
如何使用“选择”功能执行此操作?