以文本方式查看主题

-  课外天地 李树青  (http://www.njcie.com/bbs/index.asp)
--  数据库系统原理课件  (http://www.njcie.com/bbs/list.asp?boardid=19)
----  [下载]关于查看所有Unicode码字符的源代码  (http://www.njcie.com/bbs/dispbbs.asp?boardid=19&id=263)

--  作者:admin
--  发布时间:2006/11/30 15:42:01
--  [下载]关于查看所有Unicode码字符的源代码

declare @count int
set @count=0
declare @string char(100)
set @string=\'\'
while @count<=65535
begin
    set @string=rtrim(@string)+nchar(@count)
    if @count%100=0
    begin
        print @string
        set @string=\'\'
    end
    set @count=@count+1
end

[此贴子已经被作者于2010-12-11 19:35:59编辑过]