输出字符串“SQL Server 2008”中的每一个字符及其ASCII值。

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

declare @len int
set @len = LEN('SQL Server 2008')
declare @n int
set @n = 1
while @n <= @len
	BEGIN
		print ascii(SUBSTRING('SQL Server 2008',@n,1))
		set @n = @n +1
	END