DECLARE
@ALPHA_VAL CHAR(1) , @INT_VAL VARCHAR(1000)
DECLARE @VAL INT =97, @VAL1 INT =1
WHILE @VAL <= 122
BEGIN
SET @VAL1=1
WHILE @VAL1 < 1000
BEGIN
SET @ALPHA_VAL = CHAR(@VAL)
SET @INT_VAL = CONVERT(CHAR,@VAL1)
SET @INT_VAL= @ALPHA_VAL + @INT_VAL
PRINT @INT_VAL
SET @VAL1 =@VAL1+1 END
SET
@VAL=@VAL+1
END
|