While Loop:
Description:
Repetition of statement under a specific condition is called while loop.
All loops involve three things common.
- Initialization of variable (Declare Variable / Start Point of Loop)
- Set Condition (Control Repetition)
- Increment / Decrement
Example:
Print the numbers from 0 to 10 using while loop in SQL Server Database.
0 Comments