日期:2014-05-18 浏览次数:20708 次
declare @x float
declare @tb table(y float)
set @x = 0
while @x < 360
begin
insert into @tb select ROUND(SIN(RADIANS(@x)) * 100,0)
set @x = @x + 5
end
select space(201 + y - 100 )+ '*' from @tb
----------------------------------------------------------------------------------------------------------------
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*