print函数问题,求详解create function printTriangle(@line int) returns intasbegindeclare @i intset @i
print函数问题,求详解
create function printTriangle(@line int) returns int as begin declare @i int set @i = 1 while @i <= @line begin print replicate(' ', @i - 1) + replicate('*', 2 * @i -1) set @i = @i + 1 end return 0 end