标签:blog ar sp div log bs as sql tt
declare @a int = ASCII(‘A‘) declare @b int = ASCII(‘F‘) declare @c int = 1 while(@a <= @b) begin print CHAR(@a) set @a = @a + 1 if(@a > @b) begin if(@c = 1) begin set @a = ASCII(‘a‘) set @b = ASCII(‘f‘) set @c = @c + 1 end else begin return end end end
标签:blog ar sp div log bs as sql tt
原文地址:http://www.cnblogs.com/zhoushangwu/p/4097057.html