You are viewing a single comment's thread. Return to all comments →
In SQL Server
SET NOCOUNT ON;
Declare @i int = 1; Declare @Star varchar(max)= '';
While @i < 21 BEGIN SET @Star = REPLICATE('* ',@i) PRINT LEFT(@Star,LEN(@Star)) SET @i = @i + 1 END go
Seems like cookies are disabled on this browser, please enable them to open this website
Draw The Triangle 2
You are viewing a single comment's thread. Return to all comments →
In SQL Server
SET NOCOUNT ON;
Declare @i int = 1; Declare @Star varchar(max)= '';
While @i < 21 BEGIN SET @Star = REPLICATE('* ',@i) PRINT LEFT(@Star,LEN(@Star)) SET @i = @i + 1 END
go