Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
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