• + 0 comments

    Declare @i As int =20; Declare @tbl As Table (myStr varchar(max)) Declare @str As varchar(max) While(@i>0) Begin Set @str = REPLICATE('* ',@i); Insert into @tbl(myStr) values (@str) Set @i = @i-1 End select * from @tbl