Jul 27, 2020 11:22 am
Can anyone help me?
I want to write a procedure to print numbers from 1 to 100. How can I achieve this?
1 Reply
Jul 28, 2020 6:41 am
You can use the below query to print numbers from 1 to 100
Declare @ Start Int
Declare @ End Int
Set @Start =1
Set @End =100
While @Start<=@End
Begin
Pring @start
Set @Start = @Start+1
End