Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

WHILE Loop Insert

Write a stored procedure fill_numbers() that inserts the numbers 1 to 5 into the table Numbers using a WHILE loop.

Table schema

Numbers(n INT)

Sample data

Call: CALL fill_numbers();

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.