MySQL Exercise 16.1

MySQL Exercise 16.1

Welcome to scan the QR code to follow the WeChat public account "Ambition and Home", reply "12.5" to get the original file

1...Create a stored procedure, use flow control statements, and write SQL statements. The requirements are as follows:
(1) Realize the traversal of numbers between 1-10.
(2) When the number is greater than 10, exit the traversal.
(3) When the number is between 1-10, traverse the number and output.

method one:

mysql> delimiter //
mysql> create procedure proc10()
    

Guess you like

Origin blog.csdn.net/m0_46653702/article/details/110694000