essentialsql.com
What is a While Loop?
The WHILE statement is used to repeatedly execute a block of SQL. It is sometimes called a WHILE loop since the code loops back to the beginning.