Loop n times without using a stored procedure

后端 未结 4 880
闹比i
闹比i 2021-02-04 03:10

How can I write a loop that runs n times in MySql without using a stored procedure.

This is how I do it with a stored procedure:

DELIMITER $$
DROP PR         


        
4条回答
  •  粉色の甜心
    2021-02-04 03:26

    It is no possible.

    I read all MySQL documentation and it is sentences can only be declared in function/procedure body.

提交回复
热议问题