C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
While loop in SQL
WhatsApp
Pramod Thakur
Jan 05
2015
1.2
k
0
0
Let's declare a variable i and set the value is 10.
In second line we write a while loop.
declare
@i
int
=10
while(@i<=20)
begin
print @i
set
@i=@i+1
end
while loop in sql
Up Next
While loop in SQL