if object_id('tempdb..#results') is not null drop table #results create table #results (asciicode smallint,displaychar char) declare @intCounter smallint set @intCounter = 1 while @intCounter <= 255 begin insert into #results (asciicode,displaychar) select @intCounter, char(@intCounter) set @intCounter = @intCounter + 1 end select asciicode, displaychar from #results
No comments:
Post a Comment